def init(ovh, force):
"""Generate the configuration file."""
if config_file_exists():
if not force:
ovh.error('A configuration file already exists '
'(use --force to erase it).')
ovh.exit()
else:
ovh.warning('The configuration file will be erased.\n')
# Display the welcome message
ovh.echo(WELCOME_MESSAGE)
# According to the choice, we launch the good def
choice = click.prompt('Your choice', default=1, value_proc=check_choice)
ovh.echo('')
launch_setup_by_choice(ovh, choice)
评论列表
文章目录