Skip to content

How passthrough arguments are handled with multistep command is ambiguous #13

@hackedhead

Description

@hackedhead

.plz.yaml

  • id: multi
    cmd:
    • "echo"
    • "date"

[08:25] hackedhead@parakoopa:~/test % plz multi "Hello"
[INFO] Using config: .plz.yaml

===============================================================================
Running command: echo Hello
===============================================================================

Hello
()
[INFO] Process complete

===============================================================================
Running command: date Hello
===============================================================================

/usr/bin/date: invalid date ‘Hello’
()
[ERROR] Process failed

It might not be obvious that this will happen (argument passed to every subcommand) and it's unlikely that a single passthrough argument applies to all the subcommands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions