Skip to content

Set a dagger value other than string #242

@shykes

Description

@shykes

There is no way to set an input value other than a string.

  • Set a text value: dagger input string
  • Set an int value: ?
  • Set an arbitrary value from json: ?
  • Set an arbitrary value from yaml: ?

My test case is changing the node count of a kubernetes cluster:

dagger input set XXX cluster.nodes 42

Where XXX could be:

  • int
  • number
  • json
  • value
  • nothing (dagger input set cluster.nodes 42)

I have a slight preference for value with an optional —format=json|yaml|text|cue flag. The default format would be json.
dagger input text would be a shortcut for dagger input value -f text.

I could set my cluster size with dagger input set value cluster.nodes 42.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions