Skip to content

DAG of flags #784

Description

@brncsk

Is your feature request related to a problem? Please describe.

I have a use case where I'd like to specify a custom flag's default or options based on the value passed to other flag(s), or at least have the ability to provide options asynchronously.

Describe the solution you'd like

Ideally, this would be an extension of dependsOn/relationships et al., by topologically sorting flags based on their interdependencies. My goal is to be able to use my inquirer-based prompter to ask the user for flags that were unspecified on the command line, in the order specified by the dependency graph.

I'm aware this might be out of scope for oclif, but I'm willing to provide more context if needed.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions