Skip to content

Add a CLI_ARGS_LIST global variable #2139

Closed
@pd93

Description

@pd93

Description

When the CLI_ARGS variable was first introduced, Task only had string variables, so the variable was populated with a single string with shell quoted values. Since then we have introduced "any type" variables which means that arrays are now available.

Instead of As well as joining the args together, we should make them available in an array. This makes the individual arguments easier to access and loop through without the user having to do additional processing. If the user wants a single string, they are still able to use a string joining function. However, this also adds the flexibility for users to to process arguments first or choose a separator of their own.

Since this would be a breaking change, we should make this available as an experiment.

Related issues:

Edit: Changed this issue from a proposed experiment to edit an existing variable to a feature request for a new variable. This means it is no longer a breaking change and no longer needs to be an experiment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiChanges related to the UI of Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions