Skip to content

feat(cli): task arguments #24

Description

@CalvinAllen

Description

Pass arguments to tasks from the command line.

Proposed Syntax

greet:
  args:
    - name: name
      required: true
    - name: excited
      default: false
  cmd: echo "Hello, \${{ args.name }}\${{ args.excited && '!' || '.' }}"

Usage

./rnr greet --name=World
./rnr greet --name=World --excited

Acceptance Criteria

  • Define arguments with name, required, default
  • Parse arguments from CLI
  • Interpolate in commands
  • Validate required arguments

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cliCLI commandsfutureFuture feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions