hashgraph / solo

An opinionated CLI tool to deploy and manage standalone test networks.
Apache License 2.0
3 stars 4 forks source link

Add `--quiet` mode to suppress all command/subcommand prompting #580

Open jeromy-cannon opened 2 days ago

jeromy-cannon commented 2 days ago

we should add a -q or --quiet flag to all commands/subcommands to suppress all prompting. If a required value was not set, we should inform the user of the required value that was not set and exit gracefully.

Except InitCommand, it is scheduled to be removed: #578

JeffreyDallas commented 1 day ago

so if a quite flag is set, then skip all prompts.execute() function calls?

jeromy-cannon commented 19 hours ago

so if a quite flag is set, then skip all prompts.execute() function calls?

Yes, I also have some disablePrompt code that you set on all the flags, which might work. I think they just need to get cleared between test cases, because the attribute will get left on the object, unlike when you are calling Solo directly from the CLI