commands.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:ovh-cli 作者: ovh 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号