Skip to content

YAML frontend: support direct use of key:value dict for args, params, etc instead of lists of name:+value: dicts #954

Description

@emersonknapp

Description

The YAML launch syntax is overly verbose for providing:

  • include: arguments
  • node: parameters
  • set_remap: entries
  • set_parameter: entries

All look like:

include:
  arg:
    - name: argname
      value: argvalue

I propose we allow an additional usage pattern that directly uses mappings (dicts)

include:
  arg:
    argname: argval
    argname2: argval2

For all these mapping types. This would not break existing usage since the check would be

  1. sequence? check for name: and value:
  2. mapping? iterate over key+value pairs

Motivation

Increase intuitive/idiomatic use of YAML as a frontend, decrease verboseness

Design / Implementation Considerations

No response

Additional Information

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions