Skip to content

Call tasks with inputs from the cli #17

@AustinAbro321

Description

@AustinAbro321

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

  • Given I have a task that looks like build-pkg below
  • When I run uds run build-pkg --input pkg=my_pkg
  • Then the task is ran with the input
  - 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions