Skip to content

Pass no argument to action command instead of passing empty values #62

@davidferlay

Description

@davidferlay

Observed

➜  launchr git:(main) pl example:arguments
Image "envvars:latest" exists locally

Total number of arguments passed to the script: 2
- Argument 1: ""
- Argument 2: false
  • When executing action with options, these options are passed to command as arguments
  command:
    - sh
    - /action/main.sh
    - "{{ .firstoption }}"
    - "{{ .secondoption }}"
  • Meaning that their default/empty value is passed to command executed in container even if options are not passed

Expected

  • Would be great that no option vlaue is passed to command executed in container when no option is used
➜  launchr git:(main) pl example:arguments
Image "envvars:latest" exists locally

Total number of arguments passed to the script: 0

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