Skip to content

Clarify differences between value and expression syntax #6

@l0b0

Description

@l0b0

Passing values with a path containing a hyphen is different from how they have to be referenced in expressions:

$ argo-expr "{{=inputs.parameters['may-contain-quotes'] == 'example'}}" --value "inputs.parameters['may-contain-quotes']=example"
failed to evaluate expression: cannot fetch may-contain-quotes from <nil> (1:18)
 | inputs.parameters['may-contain-quotes'] == 'example'
 | .................^
$ argo-expr "{{=inputs.parameters['may-contain-quotes'] == 'example'}}" --value inputs.parameters.may-contain-quotes='example'
true

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