mirror of
https://github.com/go-task/task.git
synced 2026-06-28 15:14:18 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cad318b70 | ||
|
|
8c6002cae6 | ||
|
|
0355bbaf3b | ||
|
|
76caa16909 |
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,5 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v3.15.2 - 2022-09-08
|
||||||
|
|
||||||
|
- Fix error when using variable in `env:` introduced in the previous release
|
||||||
|
([#858](https://github.com/go-task/task/issues/858), [#866](https://github.com/go-task/task/pull/866)).
|
||||||
|
- Fix handling of `CLI_ARGS` (`--`) in Bash completion
|
||||||
|
([#863](https://github.com/go-task/task/pull/863)).
|
||||||
|
- On zsh completion, add ability to replace `--list-all` with `--list` as
|
||||||
|
already possible on the Bash completion
|
||||||
|
([#861](https://github.com/go-task/task/pull/861)).
|
||||||
|
|
||||||
## v3.15.0 - 2022-09-03
|
## v3.15.0 - 2022-09-03
|
||||||
|
|
||||||
- Add new special variables `ROOT_DIR` and `TASKFILE_DIR`. This was a highly
|
- Add new special variables `ROOT_DIR` and `TASKFILE_DIR`. This was a highly
|
||||||
|
|||||||
13
Taskfile.yml
13
Taskfile.yml
@@ -80,6 +80,19 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- goreleaser --snapshot --rm-dist
|
- goreleaser --snapshot --rm-dist
|
||||||
|
|
||||||
|
docs:changelog:
|
||||||
|
desc: Copy CHANGELOG.md to the documentation website
|
||||||
|
vars:
|
||||||
|
FILE: docs/docs/changelog.md
|
||||||
|
cmds:
|
||||||
|
- rm {{.FILE}}
|
||||||
|
- 'echo "---" >> {{.FILE}}'
|
||||||
|
- 'echo "slug: /changelog/" >> {{.FILE}}'
|
||||||
|
- 'echo "sidebar_position: 6" >> {{.FILE}}'
|
||||||
|
- 'echo "---" >> {{.FILE}}'
|
||||||
|
- 'echo "" >> {{.FILE}}'
|
||||||
|
- 'cat CHANGELOG.md >> {{.FILE}}'
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
cmds:
|
cmds:
|
||||||
- echo '{{.GO_PACKAGES}}'
|
- echo '{{.GO_PACKAGES}}'
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
local context state state_descr line
|
local context state state_descr line
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
|
_GO_TASK_COMPLETION_LIST_OPTION="${GO_TASK_COMPLETION_LIST_OPTION:---list-all}"
|
||||||
|
|
||||||
# Listing commands from Taskfile.yml
|
# Listing commands from Taskfile.yml
|
||||||
function __task_list() {
|
function __task_list() {
|
||||||
local -a scripts cmd
|
local -a scripts cmd
|
||||||
@@ -27,7 +29,7 @@ function __task_list() {
|
|||||||
(( enabled )) || return 0
|
(( enabled )) || return 0
|
||||||
|
|
||||||
scripts=()
|
scripts=()
|
||||||
for item in "${(@)${(f)$("${cmd[@]}" --list-all)}[2,-1]#\* }"; do
|
for item in "${(@)${(f)$("${cmd[@]}" $_GO_TASK_COMPLETION_LIST_OPTION)}[2,-1]#\* }"; do
|
||||||
task="${item%%:[[:space:]]*}"
|
task="${item%%:[[:space:]]*}"
|
||||||
desc="${item##[^[:space:]]##[[:space:]]##}"
|
desc="${item##[^[:space:]]##[[:space:]]##}"
|
||||||
scripts+=( "${task//:/\\:}:$desc" )
|
scripts+=( "${task//:/\\:}:$desc" )
|
||||||
|
|||||||
@@ -5,6 +5,16 @@ sidebar_position: 6
|
|||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v3.15.2 - 2022-09-08
|
||||||
|
|
||||||
|
- Fix error when using variable in `env:` introduced in the previous release
|
||||||
|
([#858](https://github.com/go-task/task/issues/858), [#866](https://github.com/go-task/task/pull/866)).
|
||||||
|
- Fix handling of `CLI_ARGS` (`--`) in Bash completion
|
||||||
|
([#863](https://github.com/go-task/task/pull/863)).
|
||||||
|
- On zsh completion, add ability to replace `--list-all` with `--list` as
|
||||||
|
already possible on the Bash completion
|
||||||
|
([#861](https://github.com/go-task/task/pull/861)).
|
||||||
|
|
||||||
## v3.15.0 - 2022-09-03
|
## v3.15.0 - 2022-09-03
|
||||||
|
|
||||||
- Add new special variables `ROOT_DIR` and `TASKFILE_DIR`. This was a highly
|
- Add new special variables `ROOT_DIR` and `TASKFILE_DIR`. This was a highly
|
||||||
|
|||||||
Reference in New Issue
Block a user