Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change all commands so that by default they output nothing but the command result (if any) #47

Closed
4 tasks done
waldekmastykarz opened this issue Nov 24, 2017 · 0 comments

Comments

@waldekmastykarz
Copy link
Member

waldekmastykarz commented Nov 24, 2017

Currently, commands output status messages giving the user an idea of the progress and what's happening behind the scenes. While useful, this will be problematic, when the CLI gets support in non-interactive mode and users would like to pass the output of one command into another.

To prevent commands from having to parse string output of command messages when receiving input from another commands, commands should by default work in silent mode, where only the result of the command is displayed (eg. list of apps, tenant settings, etc). Status messages can be displayed by running the command in verbose mode. Current verbose mode, should be renamed to debug as it outputs very detailed information which is required only when debugging the CLI.

  • rename verbose to debug
  • add new global option --verbose
  • wrap current status messages with verbose
  • ensure commands output nothing but their direct output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant