Pete Davison
5e9851f42f
Update minimum go version ( #1758 )
...
* feat: update minimum version to 1.22
* refactor: use int range iterator
* refactor: loop variables
* refactor: replace slicesext.FirstNonZero with cmp.Or
* refactor: use slices.Concat instead of append
* fix: unused param
* fix: linting
2024-08-14 08:37:05 -05:00
Valentin Maerten
375106c988
fix: list-task with multiline desc ( #1656 )
...
* fix: list-task with multiline desc
* feat: display all lines aligned in a table
* fix: display experiments
* use ladicle/tabwrite to handle color
* delete empty lines
Co-authored-by: Andrey Nering <andrey@nering.com.br>
* remove all /n and replace by space
---------
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2024-06-28 17:59:46 +01:00
Valentin Maerten
830b745112
feat(remote): global tempDir when the path is absolute ( #1661 )
...
* feat(remote): global tempDir is the path is absolute
* --wip-- [skip ci]
* fix lint
* rename checksum to fingerprint
* chore: Empty-Commit to trigger CI
* feat: add TASK_REMOTE_DIR
* handle relative path for TASK_REMOTE_DIR
* Remove unneedded extra blank lines
Co-authored-by: Andrey Nering <andrey@nering.com.br>
* add docs about TASK_REMOTE_DIR
---------
Co-authored-by: Andrey Nering <andrey@nering.com.br>
2024-06-28 17:01:11 +01:00
Pete Davison
6c21568447
fix: list tasks ( #1520 )
2024-02-28 19:44:34 -03:00
Pete Davison
07a0b8938f
refactor: bubble errors from ListTaskNames
2024-02-21 21:06:34 -03:00
Pete Davison
ba81181eb7
fix: setup logger if nil when listing task names
2024-02-21 21:06:34 -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
c5a2e92e5e
feat: add aliases to --json output
2023-12-20 21:54:52 -03:00
Andrey Nering
834babe0ef
chore: add changelog + improve code for #1368
2023-11-15 22:38:53 -03: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
270ca697b2
fix: tabwriter in usage output ( #1151 )
2023-05-06 19:04:20 -03:00
Pete Davison
8cfac5a25a
refactor: remove newlines from formatter print functions ( #1137 )
2023-04-26 21:20:06 -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
e40d2eec9e
feat: add task location data to json output ( #1056 )
...
* feat: add task location data to json output
* feat: add root taskfile location to --json output
2023-03-17 12:34:06 +00:00
Pete Davison
0838d48ee3
refactor: decouple fingerprinting from executor ( #1039 )
2023-03-10 15:27:30 -03:00
Pete Davison
2da7ddc399
chore: optimize task filtering ( #982 )
2023-01-14 16:45:52 -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
Andrey Nering
e710e2cc5d
Merge pull request #919 from go-task/include-alises-in-list-when-silent
...
feat: include aliases in --list --silent output
2022-11-12 10:16:38 -03:00
Pete Davison
fa105a8a93
refactor: implement task list filtering
2022-11-02 14:42:59 +00:00
Pete Davison
3a4b347d50
feat: include aliases in --list --silent output
2022-10-31 17:19:27 +00:00
Andrey Nering
460b89ce51
Merge branch 'feat/suggest-similar-task'
2022-10-14 20:08:00 -03:00
Andrey Nering
dda2004753
--list: Print aliases on its own column
2022-10-14 19:28:05 -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
Pete Davison
8ce1782380
feat: add coloured output to --list, --list-all and --summary flags
...
feat: add coloured output to --list and --list-all
feat: add coloured output to --summary
chore: update colors
refactor: better consistency in writer calls in printTasks
feat: subtasks are printed green in --summary
2022-10-07 09:54:17 +00:00
Ivan Elfimov
122c3f083e
Fix task names for --list
and --list-all
...
Task names should not be overrided by `label`.
2022-09-30 19:02:50 +04:00
Pete Davison
11409ccf21
fix: list + silent flags shouldn't display internal tasks
2022-08-16 17:07:05 +00:00
Pete Davison
6f8f1f1409
feat(task): tasks can be internal (not accessible from cli)
2022-08-16 17:06:25 +00:00
Andrey Nering
9e1d4e7855
Add golangci-lint
...
https://golangci-lint.run/
2022-05-15 21:30:07 -03:00
Andrey Nering
0f4621fb02
CHANGELOG: Add entry for #691
2022-03-31 21:40:16 -03: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
454988f657
Fix typo 🤦
2022-01-04 17:19:38 -03: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
Andrey Nering
bf6d0c0a74
Improve performance of --list
and --summary
flags
...
Closes #332
2021-01-12 12:03:04 -03:00
Kevin Ard
9bed7f7a9b
feat (help): allow cli option to list tasks with no desc
...
added an add'l cli option that lists all tasks, with or without description.
orig. behavior: task -l lists tasks with desc field
new behaviour: task -la or task -a will list all tasks. if task has desc, it will be included.
BREAKING CHANGES: none, that I know of.
NOTES/Concerns:
- This is wip.
- Haven't checked how it interacts with bash completion.
- The new Executor.TaskNames func does not use e.CompiledTask(taskfile.Call{Task: task.Task})
2020-11-13 15:27:03 -05:00
Damian Szulc
47dd9b5a03
Move args and taskfile packages to root directory
2020-08-19 10:59:58 +02:00
Andrey Nering
fb72b46a3c
github.com/go-task/task/v2 -> github.com/go-task/task/v3
2020-08-16 15:48:19 -03:00
Adam Wasila
9f83311931
Add label field to task definition
...
Label is an alternative name for task that replace it when printed in following context eg.:
- log: when given task is up to date and is skipped from execution
- log: when given task is NOT up to date (`--status` command)
- in `--summary` and `--list` commands output
2020-06-14 13:42:20 +02:00
Andrey Nering
acfbbaa549
Merge branch 'master' into v3
2020-03-28 10:48:49 -03:00
Paul Varache
7453e688fd
Compile tasks before printing help or summary ( Closes #276 )
2020-01-26 21:32:20 +00:00
Andrey Nering
8efc38ad82
Use colors for some output messages
2019-05-26 18:36:39 -03:00
Andrey Nering
3cbc89769d
Re-write import paths to v2
2018-11-04 21:23:35 -02:00
Andrey Nering
87a200e42c
Extract some functionality to its own packages
...
Like variable and template handling, and logging
2018-02-17 16:12:41 -02:00
Andrey Nering
152fc0ad38
Move all structs related to Taskfile to its own package
2018-02-17 14:22:18 -02:00
Andrey Nering
134c6b79c4
Add Taskfile struct and start implementing new format
...
Updates #54 , #66 and #77
2017-12-29 18:46:15 -02:00
Andrey Nering
7457b3668b
Revert "Revert "list: print message with there's no task with description""
...
This reverts commit e065dcb816
.
Reintroducing this. Reverted unintentionally.
2017-11-19 18:45:41 -02:00