Skip to content

feat(cli): task arguments #24

@CalvinAllen

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

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