intuit/judo

Feature: Support for calling a single command in a yaml/json

Opened this issue · 0 comments

Feature Request

What is the current behavior?
If I have a yaml (or json) setup with multiple commands there is no way to run just a single command.
In this example there is "someCommand" and "anotherCommand" it would be great if I could call judo foo.yaml anotherCommand which would cause someCommand to be skipped.
run: someCommand: prerequisiteCwd: /Users/efrancis/devel/DEVGRU/judo/temp/ prerequisites: - echo "this command will run before the command being tested" - echo "this will too" - git clone <some repo> - cd <some-repo> command: git checkout -b "some-feature" cwd: /Users/hansolo/test when: - 'What do you fly?': 'Millenium Falcon' - 'Did you shoot first?' : 'y' expectCode: 0 outputContains: - 'This string should be in the complete stdout/stderr output' - /This is a regex[!]+/g/ outputDoesntContain: - 'This string should NOT be in the complete stdout/stderr output' anotherCommand: command: 'echo "hi!"' expectCode: 0 outputContains: - 'hi!' outputDoesntContain: - 'bye!'