Pete Davison
47dc87a2c9
fix: remove extra breaking randInt function ( #2316 )
2025-07-03 23:08:43 +01:00
Pete Davison
71eb8cdeea
feat: checksum pinning ( #2223 )
2025-05-24 14:00:02 +01:00
Aleksander Sh.
bb5b045293
feat: add task name to json output ( #2256 )
2025-05-20 21:37:57 +01:00
Pete Davison
6528b36caa
feat: add uuid and rand number functions ( #2225 )
...
* feat: add uuid and rand number functions
* chore: remove randFloat for now
2025-05-01 17:58:01 +00:00
Pete Davison
6896accf86
feat: cli args list ( #2140 )
2025-05-01 18:43:43 +01:00
Pete Davison
d1bfd3e9f7
docs: move yaml templating functions to the correct section
2025-04-28 20:57:18 +00:00
Pete Davison
d850d03c96
feat: add yaml templating functions ( #2219 )
...
* feat: add yaml templating functions
* docs: add yaml functions to templating reference
* refactor: remove some unnecessary function wrappers
2025-04-28 12:19:56 +00:00
Pete Davison
68d5095761
Revert "fix: .USER_WORKING_DIR
should contain the value of --dir
if given ( #2186 )"
...
This reverts commit 768dca053b
.
2025-04-27 22:14:50 +00:00
Pete Davison
a84f09d45f
feat: remote taskfile improvements (cache/expiry) ( #2176 )
...
* feat: cache as node, RemoteNode and cache-first approach
* feat: cache expiry
* feat: pass ctx into reader methods instead of timeout
* docs: updated remote taskfiles experiment doc
* feat: use cache if download fails
2025-04-19 12:12:08 +01:00
Pete Davison
04df108fb5
docs: package api docs ( #2169 )
...
* refactor: pass Node into Read method instead of Reader type
* docs: add "key packages" and "Reading Taskfiles" sections to package doc
2025-04-19 11:58:31 +01:00
Andrey Nering
768dca053b
fix: .USER_WORKING_DIR
should contain the value of --dir
if given ( #2186 )
...
Closes #2102
Closes #2103
Co-authored-by: jaynis <kranz.jannis@googlemail.com >
2025-04-18 22:27:30 -03:00
Jay Berkenbilt
e65159f613
docs: clarify --dir
flag ( #2123 )
...
Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com >
2025-04-17 23:10:57 +00:00
Artem Sedykh
6f0f38b8d9
feat: support for loops with generates ( #2151 )
2025-04-05 23:55:43 +01:00
Andrey Nering
180fcef364
docs: fix typo: source
-> sources
2025-03-31 10:50:33 -03:00
Pete Davison
6f80777faf
docs: getting started ( #2086 )
...
* docs: getting started
* docs: update intro with links to getting started docs
2025-02-23 17:56:55 +00:00
Henrique Corrêa
0e23404d23
feat: specify --init filename/path ( #2018 )
...
* feat: specify init filename with --taskfile flag
previously, it was not possible to specify which filename to use when initializing a new Taskfile as it was hardcoded as "Taskfile.yml".
now the --taskfile flag specifies where to write the file to, and the first * contained in it will be replaced by "Taskfile", so `task -it *.yaml` will create a `Taskfile.yaml` file.
* docs: update CLI reference
* fix Flags header being inside tip admonition
* change -t flag's default column and add a description
* add Default Filenames section
* docs: revert adding Default Filenames section
I didn't realize it already existed elsewhere.
* refactor: use path instead of filepath on InitTaskFile
as requested to prevent ambiguity with the stdlib package.
* fix TestInit (incorrectly merged)
* docs: remove outdated info on --taskfile flag
* refactor task initialization changes
- remove const DefaultTaskInitFilename from taskfile/taskfile.go
- revert description of Entrypoint flag
- make InitTaskfile accept a path to either a file or a directory, and join the default Taskfile name+ext to it if it is a directory
- take the target file path from the first argument instead of the Entrypoint flag
- detect extension-only filenames (".yaml") instead of replacing "*" with "Taskfile"
- use different format in success log so that it makes sense at different paths than the current dir
* print colon instead of "at"
it's a lot cleaner in most cases.
* rewrite init tests
test both initializing to a directory path and a file path
* return final path from InitTaskfile
...and print it's relative representation
* fix lint error (ineffassign)
* use filepathext.TryAbsToRel() instead
* define and use filepathext.IsExtOnly()
* link to default filenames list in cli ref docs
(specifically in the --taskfile flag description)
2025-02-10 11:22:49 +00:00
Pete Davison
f5121de468
docs: broken links
2025-01-26 00:56:25 +00:00
Pete Davison
e5d8237053
docs: package api doc ( #1981 )
2024-12-31 16:08:58 +00:00
Valentin Maerten
9d8c4ba7e6
feat: add TASK_DIR special variable ( #1961 )
...
Co-authored-by: Pete Davison <pd93.uk@outlook.com >
2024-12-30 11:45:25 +01:00
Martijn Pieters
82f6029043
docs: document defer task options ( #1907 )
2024-12-11 21:23:10 -03:00
Amogh Rameshappa Devapura
c381923d3e
feat: add numCPU func ( #1890 )
2024-10-29 14:50:17 +01:00
Matheus Mina
5581954fb1
feat: allow providing single or multi prompts ( #1866 )
...
* Add new type to handle single or multi prompts
* update docs
* apply review
2024-10-29 13:37:03 +00:00
Valentin Maerten
a35910429c
feat: option to ensure variable is within the list of values ( #1827 )
2024-10-18 18:16:57 +02: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
Samuel Marks
0be05795b9
docs: exit code zero is not an error ( #1811 )
2024-09-18 22:16:59 -03:00
Valentin Maerten
ef3b853728
feat: add option to declare an included Taskfile as flatten ( #1704 )
2024-08-26 17:17:39 -04:00
Andrey Nering
defbcf6acd
chore: add changelog for #1764
2024-08-24 21:57:09 -03:00
Daniel Story
045d054a5f
feat: add ALIAS
special var ( #1764 )
2024-08-24 21:50:45 -03:00
Andrey Nering
b259edeb65
feat(defer): expose EXIT_CODE
special variable to defer:
( #1762 )
...
Co-authored-by: Dor Sahar <dorsahar@icloud.com >
2024-08-14 22:53:14 -03:00
Ryan Halliday
e781b3d4e0
docs: update syslist links to the new location ( #1747 )
2024-08-09 13:14:03 +00:00
Valentin Maerten
cdafc67bef
docs: add CLI_SILENT and CLI_VERBOSE in the docs ( #1717 )
2024-07-08 21:18:21 +00: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
40d77156df
chore: changelog for #1572
2024-06-03 09:40:33 +00:00
Pete Davison
0810ef01b0
fix: more docs typos
2024-06-03 09:28:53 +00:00
Pete Davison
527bbc3bf5
fix: docs typos/links
2024-06-03 09:06:34 +00:00
Pete Davison
a3fce1c302
feat: variable references ( #1654 )
...
* feat: add references to the base code instead of the maps experiment
* feat: add template functions to ref resolver
* feat: tests
* docs: variable references
* feat: remove json and yaml keys from map variable experiment
* chore: typo
2024-05-16 16:20:59 +01:00
Pete Davison
b0efbad591
docs: template reference ( #1653 )
...
* chore: deprecation warnings for template functions
* docs: update reference pages
2024-05-16 11:11:52 +01:00