Skip to content

dagger do: expose input fields as command-line flags #1719

@shykes

Description

@shykes

Overview

A nice improvement of dagger do would be to detect incomplete fields in the action, and expose them as part of the action interface, as magical command-line flags. For example:

// Say hello
actions: hello: {
  // Specify a greeting
  greeting: string | *"hello"
  // Specify a name
  name: string | *"world"
  message: "\(greeting), \(name)!"
}
$ dagger do hello --help
Usage: dagger do hello [--name STRING] [--greeting STRING]

Say hello

Options:

  --greeting STRING           Specify a greeting. (default: "hello")
  --name      STRING           Specify a name (default: "world")
$ dagger do hello --message bonjour --name monde

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions