Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CLI_ARGS placeholder in list output #86

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

notnmeyer
Copy link
Owner

@notnmeyer notnmeyer commented Sep 10, 2024

in the --list output when a task uses CLI_ARGS but args are not provided insert a placeholder.

for example,

➜ tsk --list -f examples/tasks.toml -F template
template:
  commands:
    echo {{.CLI_ARGS}}

but if args are provided, use them,

➜ tsk run -- --list -f examples/tasks.toml -F template -- BLARG
template:
  commands:
    echo BLARG

closes #85

@notnmeyer notnmeyer merged commit 7e13e7d into main Sep 11, 2024
1 check passed
@notnmeyer notnmeyer deleted the feat/cli_args-placeholder branch September 11, 2024 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

when using --list, show placeholder for .CLI_ARGS
1 participant