-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: modifying how tasks are selected in run command
Problem: The way that tasks were selected for running in the `run` subcommand was ambiguous. For example `openjd run -tp Foo=Bar template.json -tp Buz=Baz ...` We allowed multiple values to a single `-tp` argument, and that makes it less clear whether the 'template.json' in there is intended to be the positionl argument or an incorrectly formed -tp value. Solution: Reworked the way that tasks are selected. We now have: ```bash openjd run template.json --task-param Foo=Bar --task-param Buz=Baz ... # -> Run a single task openjd run template.json --tasks file://params.json # -> one or more tasks as defined in the file openjd run template.json --tasks '[{ ... inline json...}]' # -> one or more tasks ``` That is, the `--task-param/-tp` option is now exclusively for the case where you want to run a single task, and must be provided once for each task parameter that needs to be defined. Furthermore, the `--task-param/-tp`, `--tasks`, and `--maximum-tasks` options have been made mutually exclusive. Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
479 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.