diff --git a/examples/tasks.toml b/examples/tasks.toml index 45682c3..14b77c7 100644 --- a/examples/tasks.toml +++ b/examples/tasks.toml @@ -21,7 +21,7 @@ cmds = [ "echo \"my pwd is $(pwd)\"", # you can use subshells ] -# when `cmds` are omitted tsk attempts to run a script located at `scripts/.sh` +# when `cmds` are omitted tsk attempts to run a script located at `tsk/` [tasks.no_cmd] env = { GREETING = "Hello", diff --git a/internal/task/task.go b/internal/task/task.go index 4a34c5e..df30296 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -200,7 +200,7 @@ func (exec *Executor) ListTasksFromTaskFile(regex *regexp.Regexp) { fmt.Printf("%s\n", indent+indent+cmd) } } else { - fmt.Printf("%s# will run `%s/%s.sh`\n", indent, exec.Config.ScriptDir, name) + fmt.Printf("%s# will run `%s/%s`\n", indent, exec.Config.ScriptDir, name) } // dir diff --git a/tasks.toml b/tasks.toml index 51bacfd..e97460a 100644 --- a/tasks.toml +++ b/tasks.toml @@ -45,6 +45,11 @@ cmds = ["go mod tidy"] [tasks.install_release] # see scripts/install_release.sh for configurable env arguments +description = ''' +Downloads the specified release and installs it to ~/bin. + +usage: version=0.8.1 platform=Darwin arch=arm64 tsk install_release +''' [tasks.sign] dotenv = ".env" diff --git a/tsk/install_release.sh b/tsk/install_release similarity index 100% rename from tsk/install_release.sh rename to tsk/install_release diff --git a/tsk/release.sh b/tsk/release similarity index 100% rename from tsk/release.sh rename to tsk/release