Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add simple string/array commands #40

Merged
merged 2 commits into from
Dec 22, 2021
Merged

add simple string/array commands #40

merged 2 commits into from
Dec 22, 2021

Conversation

m3brown
Copy link
Owner

@m3brown m3brown commented Dec 21, 2021

Support simpler syntax for simple string and list commands.

Existing command format expects an object, where each object has a cmd that is either a string or a list

commands:
  foo:
    cmd: echo "bar"
  derp:
    cmd:
      - ls
      - echo "herp"

The new syntax supports the old format, but also supports commands that are simple strings or lists:

commands:
  foo: echo "bar"
  derp:
    - ls
    - echo "herp"

The old cmd format remains, it's necessary if the config needs to define additional fields (description, env, etc.)

@coveralls
Copy link

coveralls commented Dec 21, 2021

Pull Request Test Coverage Report for Build 1609318347

  • 4 of 4 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.009%) to 99.242%

Totals Coverage Status
Change from base Build 1609309093: 0.009%
Covered Lines: 262
Relevant Lines: 264

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants