Skip to content

'then' not changing input source #254

@willr3

Description

@willr3

qDup commands default to getting their input from the previous command

- sh: createJson.sh
- json: $.access.key.in.json
- set-state: storeKey

This default "flow" should change from previous command to parent command when "then" is used

- sh: createjson.sh
  then:
  - json: $.access.first.key
    then:
    - set-state: firstKey
  - json: $.access.second.key
    then:
    - set-state: secondKey
- set-state: alJson

but right now $.access.second.key is getting the output of $.access.first.key as it's input instead of the output of createJson.sh
Fixing this will likely appear as a breaking change to any script that was relying on commands under then to still get their input from the previous command instead of the command but this fix is necessary to support the example above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions