summaryrefslogtreecommitdiffstats
path: root/qtip
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-05-19 07:52:06 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-19 07:52:06 +0000
commit8d01500bc0b938d588c56d4c8d97840f68c0986b (patch)
tree017f1f72795dfdc8be862e43e60fb4635f1faead /qtip
parent83860ac43ac02ef202f1316eba1790ab3de3ff6d (diff)
parent0127f34befa1a5abdafe96c16518a71f2868a609 (diff)
Merge "Add cli-prompts while creating workspace"
Diffstat (limited to 'qtip')
-rw-r--r--qtip/cli/commands/cmd_project.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/qtip/cli/commands/cmd_project.py b/qtip/cli/commands/cmd_project.py
index 42fd000d..117330f5 100644
--- a/qtip/cli/commands/cmd_project.py
+++ b/qtip/cli/commands/cmd_project.py
@@ -36,10 +36,14 @@ def cli():
@cli.command(help="Create new testing project")
-@click.option('--pod', default='unknown', help='Name of pod under test')
-@click.option('--installer', help='OPNFV installer', default='manual')
-@click.option('--master-host', help='Installer hostname', default='dummy-host')
-@click.option('--scenario', default='unknown', help='OPNFV scenario')
+@click.option('--pod', default='unknown', prompt='Pod Name',
+ help='Name of pod under test')
+@click.option('--installer', prompt='OPNFV Installer',
+ help='OPNFV installer', default='manual')
+@click.option('--master-host', prompt='Installer Hostname',
+ help='Installer hostname', default='dummy-host')
+@click.option('--scenario', prompt='OPNFV Scenario', default='unknown',
+ help='OPNFV scenario')
@click.argument('name')
def create(pod, installer, master_host, scenario, name):
extra_vars = {