From 041af6c34d4fcf15aa9e24628f245cefdcbf32c2 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Mon, 16 Sep 2019 17:30:53 +0500 Subject: [PATCH] a --- app/cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/cli.py b/app/cli.py index 820addb..e14983a 100644 --- a/app/cli.py +++ b/app/cli.py @@ -13,7 +13,10 @@ def cli(): @cli.command("setup") @click.option("--path", required=True) @click.option("--api_server", required=True) -def setup(path, api_server): +@click.option("--name", required=True) +@click.option("--realm", required=True) +@click.option("--seed", required=True) +def setup(path, api_server, name, realm, seed): os.chdir(path) repo_name = "ucloud-cli" @@ -26,6 +29,9 @@ def setup(path, api_server): with open(os.path.join(repo_name, ".env"), "w") as f: content = ( f"UCLOUD_API_SERVER={api_server}\n" + f"OTP_NAME={name}\n" + f"OTP_REALM={realm}\n" + f"OTP_SEED={seed}\n" ) f.writelines(content)