defenseunicorns / maru-runner

The Unicorn Task Runner
Apache License 2.0
8 stars 0 forks source link

Call tasks with inputs from the cli #17

Open AustinAbro321 opened 4 months ago

AustinAbro321 commented 4 months ago

Is your feature request related to a problem? Please describe

I would like to be able to require inputs on my tasks and run those commands from the command line

Describe the solution you'd like

  - name: build-pkg
    description: build a package
    inputs:
      pkg:
        description: pkg to build
        required: true
    actions:
      - cmd: cd "${PKG}" &&  go build -o ../build/${PKG} .
        description: "build pkg"
UncleGedd commented 2 months ago

Adding some context to this issue because we very briefly had a --with flag that did what @AustinAbro321 is asking for:

Here's some more context: The --with flag was meant to be used for testing tasks with inputs from the CLI. This feature ended up being confusing for users so we'd like to remove it. We believe this will encourage better testing patterns because it forces users to test their inputs with actual tasks instead of through the CLI.