diff --git a/CHANGELOG.md b/CHANGELOG.md index 01aaa2f3..056671af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +- Allow Taskfiles starting with lowercase characters (#947, #1221 by @pd93). + - e.g. `taskfile.yml`, `taskfile.yaml`, `taskfile.dist.yml` & + `taskfile.dist.yaml` - Bug fixed were made to the [npm installation method](https://taskfile.dev/installation/#npm). (#1190, by @sounisi5011). @@ -19,8 +22,8 @@ [Documentation](https://taskfile.dev/usage/#warning-prompts)). - Added support for single command task syntax. With this change, it's now possible to declare just `cmd:` in a task, avoiding the more complex - `cmds: []` when you have only a single command for that task - (#1130, #1131 by @timdp). + `cmds: []` when you have only a single command for that task (#1130, #1131 by + @timdp). ## v3.25.0 - 2023-05-22 diff --git a/cmd/task/task.go b/cmd/task/task.go index 0ed11b64..dde4ef2c 100644 --- a/cmd/task/task.go +++ b/cmd/task/task.go @@ -128,7 +128,7 @@ func run() error { pflag.BoolVarP(&flags.color, "color", "c", true, "Colored output. Enabled by default. Set flag to false or use NO_COLOR=1 to disable.") pflag.IntVarP(&flags.concurrency, "concurrency", "C", 0, "Limit number tasks to run concurrently.") pflag.DurationVarP(&flags.interval, "interval", "I", 0, "Interval to watch for changes.") - pflag.BoolVarP(&flags.global, "global", "g", false, "Runs global Taskfile, from $HOME/Taskfile.{yml,yaml}.") + pflag.BoolVarP(&flags.global, "global", "g", false, "Runs global Taskfile, from $HOME/{T,t}askfile.{yml,yaml}.") pflag.Parse() if flags.version { diff --git a/docs/docs/usage.md b/docs/docs/usage.md index 1d339110..309de84c 100644 --- a/docs/docs/usage.md +++ b/docs/docs/usage.md @@ -43,9 +43,13 @@ If you omit a task name, "default" will be assumed. Task will look for the following file names, in order of priority: - Taskfile.yml +- taskfile.yml - Taskfile.yaml +- taskfile.yaml - Taskfile.dist.yml +- taskfile.dist.yml - Taskfile.dist.yaml +- taskfile.dist.yaml The intention of having the `.dist` variants is to allow projects to have one committed version (`.dist`) while still allowing individual users to override @@ -85,7 +89,7 @@ will be brought up. If you call Task with the `--global` (alias `-g`) flag, it will look for your home directory instead of your working directory. In short, Task will look for a -Taskfile on either `$HOME/Taskfile.yml` or `$HOME/Taskfile.yaml` paths. +Taskfile that matches `$HOME/{T,t}askfile.{yml,yaml}` . This is useful to have automation that you can run from anywhere in your system! diff --git a/taskfile/read/taskfile.go b/taskfile/read/taskfile.go index 0e84fd5a..74c7d53a 100644 --- a/taskfile/read/taskfile.go +++ b/taskfile/read/taskfile.go @@ -21,9 +21,13 @@ var ( defaultTaskfiles = []string{ "Taskfile.yml", + "taskfile.yml", "Taskfile.yaml", + "taskfile.yaml", "Taskfile.dist.yml", + "taskfile.dist.yml", "Taskfile.dist.yaml", + "taskfile.dist.yaml", } )