Juan Ignacio Donoso
05755f3a52
fix: templates on task descriptions ( #1343 )
2023-10-07 18:57:14 -03:00
Pete Davison
dc77286282
feat: unify prompts ( #1344 )
2023-10-07 21:55:43 +00:00
Andrey Nering
a70f5aafc2
fix: increase max task calls limit from 100 to 1000
...
Closes #1321
Closes #1332
2023-10-07 18:29:16 -03:00
Andrey Nering
adfb96b637
feat: add ability to set watch: true
in Taskfile ( #1361 )
2023-10-07 18:06:43 -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
e96712b020
fix: make sure USER_WORKING_DIR works corrently with includes ( #1309 )
...
Closes #1046
Closes #1205
Closes #1250
Closes #1293
Closes #1274
Closes #1309
Closes #1312
Co-authored-by: Marcus Spading <ms@fragmentum.net>
2023-08-26 21:06:50 +00:00
Pete Davison
6059ce2ac4
fix: exit codes for indirect tasks
2023-07-24 21:13:37 -03:00
Pete Davison
02f1c8482a
fix: new line after prompts
2023-06-29 22:24:21 -03:00
Ben Coleman
307f39cee3
feat: add ability to specify which vars are required ( #1204 )
2023-06-29 22:13:41 -03: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
Andrey Nering
44aaec86a1
chore: improvements on #1163 + changelog entry
2023-06-03 22:33:22 -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
Mads H. Danquah
9a406f5998
fix: ensure that calls to other tasks can be silenced ( #680 )
2023-05-22 22:09:29 -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
Mads Høgstedt Danquah
1b30c9dbca
Make status checks respect task and global silent mode ( #1107 )
2023-04-05 22:18:58 -03:00
Pete Davison
09c9094a6b
feat: enforce gofumpt linter
2023-04-05 21:55:42 -03:00
Pete Davison
0838d48ee3
refactor: decouple fingerprinting from executor ( #1039 )
2023-03-10 15:27:30 -03:00
Andrey Nering
68aef2ef0d
Add CHANGELOG entry for #1022
2023-03-08 22:37:04 -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
Bevan Arps
52756ab83e
Fix deadlock issue with run: once
( #1025 )
2023-03-01 21:53:38 -03:00
Pete Davison
2da7ddc399
chore: optimize task filtering ( #982 )
2023-01-14 16:45:52 -03:00
Pete Davison
1c1be683ab
feat: set and shopt directives ( #929 )
...
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2023-01-14 16:41:56 -03:00
Andrey Nering
2efb3533ec
Add CHANGELOG + improvements to #980
...
Closes #978
2023-01-06 21:39:57 -03:00
Lea Anthony
aa6c7e4b94
Add support for 'platforms' in both task and command ( #980 )
2023-01-06 21:38:35 -03:00
Pete Davison
796097e3ab
fix: watch interval ( #970 )
2022-12-31 13:48:49 -03:00
Andrey Nering
957bff4b89
CHANGELOG + small improvements to #936
2022-12-17 10:35:30 -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
460b89ce51
Merge branch 'feat/suggest-similar-task'
2022-10-14 20:08:00 -03:00
Andrey Nering
d2f2cba6d8
Merge branch 'master' into aliases
2022-10-14 18:44:56 -03:00
Max Pushkarov
3e5ee2332a
feat: suggest the most similar task name when a given task does not exist
2022-10-10 13:17:19 +03:00
Pete Davison
376a6182eb
feat: aliases
...
feat: add aliases to --list and --list-all flags
feat: add aliases to --summary
feat: enable aliases for included tasks
tests: added alias unit tests
2022-10-07 11:11:14 +00:00
ilewin
d8dc091267
Merge branch 'go-task:master' into configurable_watch_interval_#813
2022-09-19 20:22:26 +02: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
Andrey Nering
4a5c1e9ec4
Merge branch 'internal-tasks' of https://github.com/pd93/task into pd93-internal-tasks
2022-09-17 12:59:19 -03:00
Oleg Kovalov
b08eac58e9
Fix go-critic suggestions
2022-08-17 19:37:58 +02:00
Pete Davison
6f8f1f1409
feat(task): tasks can be internal (not accessible from cli)
2022-08-16 17:06:25 +00:00
Andrey Nering
bf9cd7625b
Refactor task.Setup(): Move to its own file and split in separated functions
2022-07-08 15:16:04 -03:00
Andrey Nering
fedb68cde7
Allow override the .task
dir location with the TASK_TEMP_DIR
env
2022-07-08 14:40:10 -03:00
Andrey Nering
e36c77aaf3
Fix bug with STDOUT and STDERR in the "group" output mode
...
Took the oportunity to refactor a bit how we handle closing of the streams.
Fixes #779
2022-07-06 10:45:07 -03:00
Bruno Delor
a790fb7afe
Adds --carry flag to enable carrying error codes from task cmds
2022-06-02 14:22:00 +02:00
Andrey Nering
0f4621fb02
CHANGELOG: Add entry for #691
2022-03-31 21:40:16 -03:00
Andrey Nering
c6ff641f6d
Merge branch 'list-task-names' of https://github.com/ardnew/task into ardnew-list-task-names
2022-03-31 21:31:56 -03:00
Andrey Nering
41cd7acc87
Merge pull request #656 from tylermmorton/master
...
Add support for multi-level includes
2022-03-31 21:12:15 -03: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
tylermmorton
02e7ff27c7
Add support for multi-level includes and cyclic include detection
2022-01-14 22:38:37 -05: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