Skip to content

detect interactive input #124

@feloy

Description

@feloy

For commands, detect is the cli is executed in an interactive context (terminal), and adapt the scenario if it is interactive:

In interactive mode:

  • during init, if some flags are not provided (agent, runtime, etc), provide to the user the list of possible values, and ask to pick one
  • during start/stop/remove/terminal, if the instance is not in a correct state, ask the user if the state should be changed (eg 'the workspace must be stopped before to remove it, do you want to stop it?')
  • etc

In non interactive mode (scripts, called from UI), do not change and return errors

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