PlanktoScope / forklift

Composable, reprovisionable, decentralized management of apps & configs on Raspberry Pis and other embedded Linux systems
Apache License 2.0
6 stars 0 forks source link

ui: Provide simple TUI prompts for CLI commands #238

Open ethanjli opened 1 month ago

ethanjli commented 1 month ago

Currently, the only way to set inputs to CLI commands is to provide them as command-line arguments, which can be awkward (e.g. with the [dev] plt add-depl subcommand and its optional flags for setting feature flags). It would be nice if any CLI subcommand with required arguments could be invoked without any arguments, to trigger a simple TUI (e.g. https://github.com/charmbracelet/huh) for getting the arguments in a more user-friendly way. This could also be used to:

We should add an optional global flag (e.g. --noninteractive/--nonint, or --frontend=nonint) to error out instead of going to a TUI when CLI args are underspecified.