Move the password generation logic to its own class and out of the config
parser to cut down on the number of places that have component-specific configuration knowledge. Add a --no-prompt-passwords flag to stack for users that want auto-generated passwords without having to press enter for each one. Pork: - Ignore the emacs TAGS file.
This commit is contained in:
@@ -77,6 +77,12 @@ def parse():
|
||||
action="store_false",
|
||||
dest="ensure_deps",
|
||||
help="ignore dependencies when performing ACTION")
|
||||
base_group.add_option("--no-prompt-passwords",
|
||||
action="store_false",
|
||||
dest="prompt_for_passwords",
|
||||
default=True,
|
||||
help="do not prompt the user for passwords",
|
||||
)
|
||||
base_group.add_option("-e", "--ensure-deps",
|
||||
action="store_true",
|
||||
dest="ensure_deps",
|
||||
@@ -118,5 +124,6 @@ def parse():
|
||||
output['keep_old'] = options.keep_old
|
||||
output['extras'] = args
|
||||
output['verbosity'] = len(options.verbosity)
|
||||
output['prompt_for_passwords'] = options.prompt_for_passwords
|
||||
|
||||
return output
|
||||
|
Reference in New Issue
Block a user