mirror of
https://github.com/go-task/task.git
synced 2026-07-02 08:58:41 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2aafe7b73d | ||
|
|
2ba083a650 | ||
|
|
c79ea5a257 | ||
|
|
44706f4957 | ||
|
|
a1b3bb03ed | ||
|
|
160b788198 | ||
|
|
eada62f62c | ||
|
|
bd9419e6db | ||
|
|
bdd9de3001 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,10 +1,20 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v3.15.1 - 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
|
||||||
requested feature
|
requested feature
|
||||||
([#215](https://github.com/go-task/task/issues/215), [Documentation](https://taskfile.dev/api/#special-variables)).
|
([#215](https://github.com/go-task/task/issues/215), [#857](https://github.com/go-task/task/pull/857), [Documentation](https://taskfile.dev/api/#special-variables)).
|
||||||
- Follow symlinks on `sources`
|
- Follow symlinks on `sources`
|
||||||
([#826](https://github.com/go-task/task/issues/826), [#831](https://github.com/go-task/task/pull/831)).
|
([#826](https://github.com/go-task/task/issues/826), [#831](https://github.com/go-task/task/pull/831)).
|
||||||
- Improvements and fixes to Bash completion
|
- Improvements and fixes to Bash completion
|
||||||
|
|||||||
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}}'
|
||||||
|
|||||||
@@ -7,6 +7,18 @@ function _task()
|
|||||||
local cur prev words cword
|
local cur prev words cword
|
||||||
_init_completion -n : || return
|
_init_completion -n : || return
|
||||||
|
|
||||||
|
# Check for `--` within command-line and quit or strip suffix.
|
||||||
|
local i
|
||||||
|
for i in "${!words[@]}"; do
|
||||||
|
if [ "${words[$i]}" == "--" ]; then
|
||||||
|
# Do not complete words following `--` passed to CLI_ARGS.
|
||||||
|
[ $cword -gt $i ] && return
|
||||||
|
# Remove the words following `--` to not put --list in CLI_ARGS.
|
||||||
|
words=( "${words[@]:0:$i}" )
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Handle special arguments of options.
|
# Handle special arguments of options.
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
-d|--dir)
|
-d|--dir)
|
||||||
@@ -33,7 +45,7 @@ function _task()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Prepare task name completions.
|
# Prepare task name completions.
|
||||||
local tasks=( $( "${COMP_WORDS[@]}" --silent $_GO_TASK_COMPLETION_LIST_OPTION 2> /dev/null ) )
|
local tasks=( $( "${words[@]}" --silent $_GO_TASK_COMPLETION_LIST_OPTION 2> /dev/null ) )
|
||||||
COMPREPLY=( $( compgen -W "${tasks[*]}" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "${tasks[*]}" -- "$cur" ) )
|
||||||
|
|
||||||
# Post-process because task names might contain colons.
|
# Post-process because task names might contain colons.
|
||||||
|
|||||||
@@ -9,9 +9,10 @@ tasks:
|
|||||||
start:
|
start:
|
||||||
desc: Start website
|
desc: Start website
|
||||||
vars:
|
vars:
|
||||||
|
HOST: '{{default "localhost" .HOST}}'
|
||||||
PORT: '{{default "3001" .PORT}}'
|
PORT: '{{default "3001" .PORT}}'
|
||||||
cmds:
|
cmds:
|
||||||
- npx docusaurus start --no-open --port={{.PORT}}
|
- npx docusaurus start --no-open --host={{.HOST}} --port={{.PORT}}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
desc: Build website
|
desc: Build website
|
||||||
|
|||||||
@@ -5,11 +5,21 @@ sidebar_position: 6
|
|||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v3.15.1 - 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
|
||||||
requested feature
|
requested feature
|
||||||
([#215](https://github.com/go-task/task/issues/215), [Documentation](https://taskfile.dev/api/#special-variables)).
|
([#215](https://github.com/go-task/task/issues/215), [#857](https://github.com/go-task/task/pull/857), [Documentation](https://taskfile.dev/api/#special-variables)).
|
||||||
- Follow symlinks on `sources`
|
- Follow symlinks on `sources`
|
||||||
([#826](https://github.com/go-task/task/issues/826), [#831](https://github.com/go-task/task/pull/831)).
|
([#826](https://github.com/go-task/task/issues/826), [#831](https://github.com/go-task/task/pull/831)).
|
||||||
- Improvements and fixes to Bash completion
|
- Improvements and fixes to Bash completion
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ the `test-release` task of the Taskfile.
|
|||||||
artifacts automatically when a new Git tag is pushed to master
|
artifacts automatically when a new Git tag is pushed to master
|
||||||
(raw executables and DEB and RPM packages).
|
(raw executables and DEB and RPM packages).
|
||||||
|
|
||||||
|
Since v3.15.0, raw executables can also be reproduced and verified locally by
|
||||||
|
checking out a specific tag and calling `goreleaser build`, using the Go version
|
||||||
|
defined in the above GitHub Actions.
|
||||||
|
|
||||||
# Homebrew
|
# Homebrew
|
||||||
|
|
||||||
To release a new version on the [Homebrew tap][homebrewtap] edit the
|
To release a new version on the [Homebrew tap][homebrewtap] edit the
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
--ifm-font-family-base: Roboto, system-ui, -apple-system, Segoe UI, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
|
||||||
|
--ifm-font-family-monospace: 'Roboto Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
||||||
|
|
||||||
--ifm-color-primary: #43ABA2 ;
|
--ifm-color-primary: #43ABA2 ;
|
||||||
--ifm-color-primary-dark: #3AB2A6;
|
--ifm-color-primary-dark: #3AB2A6;
|
||||||
--ifm-color-primary-darker: #32B8AB;
|
--ifm-color-primary-darker: #32B8AB;
|
||||||
@@ -11,13 +16,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
[data-theme='dark'] {
|
[data-theme='dark'] {
|
||||||
--ifm-color-primary: #43ABA2 ;
|
|
||||||
--ifm-color-primary-dark: #3AB2A6;
|
|
||||||
--ifm-color-primary-darker: #32B8AB;
|
|
||||||
--ifm-color-primary-darkest: #29BEB0;
|
|
||||||
--ifm-color-primary-light: #4CA59D;
|
|
||||||
--ifm-color-primary-lighter: #559F98;
|
|
||||||
--ifm-color-primary-lightest: #5D9993;
|
|
||||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ func Dotenv(c compiler.Compiler, tf *taskfile.Taskfile, dir string) (*taskfile.V
|
|||||||
|
|
||||||
for _, dotEnvPath := range tf.Dotenv {
|
for _, dotEnvPath := range tf.Dotenv {
|
||||||
dotEnvPath = tr.Replace(dotEnvPath)
|
dotEnvPath = tr.Replace(dotEnvPath)
|
||||||
|
if dotEnvPath == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
dotEnvPath = filepathext.SmartJoin(dir, dotEnvPath)
|
dotEnvPath = filepathext.SmartJoin(dir, dotEnvPath)
|
||||||
|
|
||||||
if _, err := os.Stat(dotEnvPath); os.IsNotExist(err) {
|
if _, err := os.Stat(dotEnvPath); os.IsNotExist(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user