Skip to content

Split CLI args experiment #2139

Open
@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 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeChanges that are not backward compatible.status: proposedExperimental feature - Pending feedback on proposal.

    Projects

    Status

    proposed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions