Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: default to no confirmation prompts for CLI commands
The CLI commands all printed confirmation prompts for the various flags they exposed. This commit modifies that logic, so that there is no longer a `-y` flag, but instead a `--confirm` or `-c` flag for each command, and prompts are only displayed if using this flag. In most cases, the derived values are printed even if not prompted for. In call cases where the user is prompted, I have removed the "Verbose" prompt, as that seems less like a configuration option that needs to be confirmed, and more like just a CLI option for the current run which we can just accept as-is. The text for the prompts has also been reduced to one or two words. Also added are some checks around image naming and repositories, short circuiting failures that could occur if these are not specified or are unknown. For example, if a user does `faas init` and then `faas deploy` we don't yet know what the image name should be - one hasn't been built. Fixes: #91 Fixes: #90 Fixes: #89
- Loading branch information
Showing
8 changed files
with
151 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.