Henrique Corrêa
88c4ba1740
feat: make Taskfile initialization less verbose by default ( #2011 )
...
* change what is printed when creating Taskfile
When using --init to create a new Taskfile, it used to print the whole contents of the file to the terminal, which was unnecessarily verbose (and honestly felt unintentional).
Now only the filename is printed by default and the --silent and --verbose flags can be used to control the behavior (print nothing or content + filename, respectively).
* include additional new line with -i -v
it looks slightly better in the terminal.
* print init success text in green
* fix TestInit, create and pass in a logger
* move logging outside of InitTaskfile
- revert API changes made to InitTaskfile
- make consts in init.go public so they can be accessed from task.go
- rename variable "logger" to "log" in task.go to fix conflict with logger package
* move TestInit into init_test.go file
as requested by pd93.
2025-01-29 22:41:17 +00:00
Lea Anthony
69f5714e45
fix: disable version check for use as an external library
...
Closes #1938
2025-01-18 10:26:58 -03:00
Valentin Maerten
ddccd1bb61
feat: add TASK_OFFLINE env and expose it as a special variable ( #1716 )
...
Co-authored-by: Pete Davison <pd93.uk@outlook.com >
2024-09-21 11:17:15 -04:00
Pete Davison
3747b2ab7f
feat: completion command ( #1157 )
2024-09-02 19:21:53 +00:00
Valentin Maerten
76030c9146
feat(remote): add a command to clear the cache ( #1639 )
...
* feat(remote): add a command to clear the cache
* Update cmd/task/task.go
Co-authored-by: Andrey Nering <andrey@nering.com.br >
* rebase
---------
Co-authored-by: Andrey Nering <andrey@nering.com.br >
2024-06-28 17:42:16 +01:00
Vincent Smith
413dcd28a8
Add verbose/silent variables ( #1669 )
2024-06-28 17:13:52 +01:00
Valentin Maerten
1e25ceab29
fix: version check ( #1663 )
...
* fix: version check
* refactor following review
2024-05-20 21:48:05 +01:00
Pete Davison
8d138a5eea
feat: better yaml parsing and error handling ( #1619 )
2024-05-16 01:24:02 +00:00
Pete Davison
ddd9964db7
feat: warn about move from any variables to map variables ( #1618 )
2024-04-24 21:40:52 +01:00
Pete Davison
e9448bd4be
fix: advanced import operates on including file instead of included file
2024-04-09 12:37:18 +01:00
Pete Davison
cbc19d35ea
feat: root remote taskfiles
2024-03-25 19:13:27 +00:00
Pete Davison
d30539c17e
refactor: move flags into their own package ( #1521 )
...
* feat: move flags to their own package
* refactor: move flag validation into flags package
2024-02-29 00:12:19 +00:00
Pete Davison
6c21568447
fix: list tasks ( #1520 )
2024-02-28 19:44:34 -03:00
Pete Davison
1ef5cf71d0
feat: pass ast.Call by reference
2024-02-22 14:58:24 -06:00
Pete Davison
07a0b8938f
refactor: bubble errors from ListTaskNames
2024-02-21 21:06:34 -03:00
Pete Davison
dfe39bfb5d
feat: support multiple experiment values
2024-01-11 14:44:04 +00:00
Pete Davison
42af0fc791
feat: invert call.Direct ( #1459 )
2024-01-10 21:32:49 -03:00
Pete Davison
247c2586c2
refactor: taskfile/ast package ( #1450 )
...
* refactor: ast package
* feat: read -> taskfile
* refactor: taskfile.Taskfile -> taskfile.Read
* refactor: move merge function back into taskfile package
* refactor: rename taskfile.go to read.go
2023-12-29 20:32:03 +00:00
Pete Davison
2b67d05b9d
feat: remove v2 support ( #1447 )
...
* feat: remove v2 support
* docs: update v2 schema docs
2023-12-29 20:26:02 +00:00
Pete Davison
e177f48e41
feat: CLI_FORCE special variable ( #1434 )
2023-12-21 02:08:57 +00:00
Pete Davison
de09e675c1
refactor: rename Var.Static to Var.Value
2023-12-20 19:55:25 -06:00
Pete Davison
546a4d7e46
feat: prefer remote taskfiles over cached ones ( #1345 )
...
* feat: prefer remote taskfiles over cached ones
* feat: implemented cache on network timeout
* feat: --download always downloads, but never executes tasks
* feat: --timeout flag
* fix: bug with timeout error handling
* chore: changelog
2023-11-17 14:51:10 -06:00
Alexander Mancevice
8355f16809
feat: add --no-status flag ( #1368 )
...
disables status check when running with `--list` `--json` options
2023-11-15 22:31:02 -03:00
Pete Davison
22ce67c5e5
feat: remote taskfiles (HTTP) ( #1152 )
...
* feat: remote taskfiles over http
* feat: allow insecure connections when --insecure flag is provided
* feat: better error handling for fetch errors
* fix: ensure cache directory always exists
* fix: setup logger before everything else
* feat: put remote taskfiles behind an experiment
* feat: --download and --offline flags for remote taskfiles
* feat: node.Read accepts a context
* feat: experiment docs
* chore: changelog
* chore: remove unused optional param from Node interface
* chore: tidy up and generalise NewNode function
* fix: use sha256 in remote checksum
* feat: --download by itself will not run a task
* feat: custom error if remote taskfiles experiment is not enabled
* refactor: BaseNode functional options and simplified FileNode
* fix: use hex encoding for checksum instead of b64
2023-09-12 22:42:54 +01:00
Andrey Nering
d1f643ebd9
fix: --status flag should not have side-effects ( #1313 )
...
Closes #1305
Closes #1307
Co-authored-by: Giovanni Visciano <giovanni_visciano@yahoo.it >
2023-08-26 21:30:23 +00:00
Pete Davison
46f7bba90d
feat: experiments flag ( #1242 )
2023-06-30 01:29:28 +00:00
Pete Davison
5fdaa9aa36
feat: implement gentle force experiment draft ( #1216 )
...
* feat: implement gentle force experiment draft
* docs: changelog
2023-06-18 02:32:18 +01:00
Pete Davison
5e78171d3e
feat: support lowercase Taskfiles ( #1221 )
2023-06-17 14:38:53 -03:00
Pete Davison
5af361ab1c
docs: add possible values for --sort
2023-06-10 21:12:02 -03:00
Pete Davison
06727c3892
chore: generalise the usage message
2023-06-10 21:12:02 -03:00
Max Cheetham
f815ce2901
feat(prompts): add ability for tasks to prompt user pre execution ( #1163 )
2023-06-03 22:33:00 -03:00
Andrey Nering
38341fffbd
fix: print errors in red color
...
Using the logger package so envs like NO_COLOR and FORCE_COLOR keeps working.
2023-05-06 21:11:16 -03:00
Pete Davison
6633e65ee6
refactor: move TaskRunError handling into main function
2023-05-06 21:11:16 -03:00
Pete Davison
745de72d7e
refactor: move flags into a package-level struct var
2023-05-06 21:11:16 -03:00
Clint Mod
c145658206
fix some errors being unintendedly supressed ( #1134 )
2023-04-26 21:28:54 -03:00
Pete Davison
8cfac5a25a
refactor: remove newlines from formatter print functions ( #1137 )
2023-04-26 21:20:06 -03:00
Pete Davison
f9c77acd96
feat: custom error codes ( #1114 )
2023-04-15 17:22:25 -03:00
Pete Davison
f22389a824
feat: implement task sorting with --sort flag ( #1105 )
...
* refactor: move deepcopy into its own package
* feat: add generic orderedmap implementation
* refactor: implement tasks with orderedmap
* feat: implement sort flag for all task outputs
* refactor: implement vars with orderedmap
* chore: docs
* fix: linting issues
* fix: non deterministic behavior in tests
2023-04-06 12:07:57 +01:00
Pete Davison
09c9094a6b
feat: enforce gofumpt linter
2023-04-05 21:55:42 -03:00
Misite Bao
15ef1fa1c2
Make --init generate .yml instead of .yaml ( #1062 )
2023-03-16 21:53:01 -03:00
Andrey Nering
f2114f09f7
Fix capitalization of flags descriptions on task -h
...
Also, adds missing periods.
2023-03-08 23:24:39 -03:00
Andrey Nering
9c844850e4
Add --global (-g) flag ( #1029 )
...
This will run a Taskfile from the home directory, i.e., `$HOME/Taskfile.yml`.
2023-03-08 23:21:23 -03:00
Dennis Jekubczyk
88d644a7e9
Add ability to set error_only: true on the group output mode
2023-03-08 22:34:52 -03:00
Pete Davison
d4ed7c3cfc
Merge pull request #1004 from go-task/semver
...
feat: use semver package for taskfile schema version
2023-03-02 19:07:52 +00:00
João Pedro
ec2110e58f
Add new TASK_VERSION special variable
...
Closes #1014
Closes #990
2023-02-22 22:08:38 -03:00
Pete Davison
8b72c86ba5
feat: use semver package for taskfile schema version
2023-02-10 18:14:38 +00:00
Pete Davison
796097e3ab
fix: watch interval ( #970 )
2022-12-31 13:48:49 -03:00
David Alpert
321f7b59d8
Add --json flag to be used by editor extensions ( #936 )
2022-12-17 10:31:00 -03:00
Pete Davison
fa105a8a93
refactor: implement task list filtering
2022-11-02 14:42:59 +00:00
Andrey Nering
99014ad38d
Small adjustments + CHANGELOG for #865
2022-10-14 16:51:14 -03:00