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
Andrey Nering
42ac242927
release: v3.30.0
2023-09-13 22:04:01 -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
Pete Davison
793c1e5587
docs: add experiments doc and v2 deprecation notice
2023-06-03 20:54:36 -03:00
Andrey Nering
dcf66e7380
v3.25.0
2023-05-22 22:45: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
Pete Davison
22983bcdd3
feat: release tool improvements ( #1096 )
2023-03-30 21:10:11 -03:00
Pete Davison
5583cea936
feat: create release command
2023-03-26 20:58:20 -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
Andrey Nering
a98b41d657
Add goimports as a linter
2022-12-17 11:02:17 -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
ilewin
1c44d8049a
Issue 813. Made watch interval configurable through global setting in Taskfile and through CLI arg.
...
Separated Taskfile param and Arg flag
2022-09-19 20:14:35 +02:00
Gerd Aschemann
475c5dc19a
Add -n
as short cut for --dry
- solves #776
2022-06-13 12:47:03 +02:00
Andrey Nering
7989f73f06
Fix behavior of interrupt (SIGINT, SIGTERM) signals
...
Task will now give time for the processes running to do cleanup work
Ref #458
Ref #479
Fixes #728
Co-authored-by: Marco Molteni <marco.molteni@pix4d.com>
Co-authored-by: aliculPix4D <aleksandar.licul_ext@pix4d.com>
2022-06-11 22:43:22 -03:00
Andrey Nering
c9a582fbcc
Add CHANGELOG, documentation and make small adjutsment for #755
2022-06-11 20:01:48 -03:00
Bruno Delor
752d9d5316
Renames option to align with existing tools
...
Shorthand: -x
Longhand: --exit-code
2022-06-06 09:46:27 +02:00
Bruno Delor
a790fb7afe
Adds --carry flag to enable carrying error codes from task cmds
2022-06-02 14:22:00 +02:00
ardnew
9897f4b527
refactor with support for --list and --list-all
2022-03-21 12:59:25 -05:00
ardnew
978a6e5ecb
quickly print task names only with flags --silent and --list
2022-03-21 12:02:56 -05:00
Andrey Nering
b323531dd5
Improvements and CHANGELOG for #651
2022-02-19 19:31:27 -03:00
Jay Anslow
74f5cf8f29
Add support for begin/end messages with grouped output
...
Fixes #647
This allows CI systems that support grouping (such as with [GitHub Actions's `::group::` command](https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#grouping-log-lines ) and [Azure Devops](https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#formatting-commands )) to collapse all of the logs for a single task, to improve readability of logs
## Example
The following Taskfile
```
# Taskfile.yml
version: 3
output:
group:
begin: "::group::{{ .TASK }}"
end: "::endgroup::"
tasks:
default:
cmds:
- "echo 'Hello, World!'"
```
Results in the following output
```bash
$ task
task: [default] echo 'Hello, World!'
::group::default
Hello, World!
::endgroup::
```
See [this GitHub Actions job](https://github.com/janslow/task/runs/4811059609?check_suite_focus=true ) for a full example
<img width="771" alt="image" src="https://user-images.githubusercontent.com/1253367/149429832-6cb0c1b5-0758-442e-9375-c4daa65771bc.png ">
<img width="394" alt="image" src="https://user-images.githubusercontent.com/1253367/149429851-1d5d2ab5-9095-4795-9b57-f91750720d40.png ">
2022-01-14 00:22:14 +00:00
Andrey Nering
7e0346d6eb
Add CHANGELOG, documentation and small improvements to #401
2022-01-04 17:16:21 -03:00
Andrey Nering
00a90d1fe6
Merge branch 'f/list-all' of https://github.com/therealkevinard/task into therealkevinard-f/list-all
2022-01-04 17:03:12 -03:00
Kevin Ard
42702e81b3
refactor: wrap PrintTasksHelp with arg-less signatures
...
provide exported methods for accessing PrintTasksHelp variants.
2022-01-03 12:12:18 -05:00
Margus Kerma
1d7982e80a
fix( #584 ): Add support to yaml extension
...
- init creates Taskfile.yaml
- add changelog entry
- add zsh completion support for Taskfile.yaml
2022-01-02 15:23:10 +02:00