3 from functest.cli.commands.cli_env import CliEnv
4 from functest.cli.commands.cli_testcase import CliTestcase
5 from functest.cli.commands.cli_tier import CliTier
7 CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
10 @click.group(context_settings=CONTEXT_SETTINGS)
11 @click.version_option(version='opnfv colorado.0.1 ')
16 _testcase = CliTestcase()
38 @env.command('show', help="write the help here")
43 @env.command('status', help="write the help here")
48 @env.command('getrc', help="write the help here")
53 @env.command('sourcerc', help="write the help here")
58 @env.command('setdefaults', help="write the help here")
59 def env_setdefaults():
63 @env.command('getdefaults', help="write the help here")
64 def env_getdefaults():
68 @env.command('clean', help="write the help here")
73 @testcase.command('list', help="write the help here")
78 @testcase.command('show', help="write the help here")
79 @click.argument('testname', type=click.STRING, required=True)
80 def testcase_show(testname):
81 _testcase.show(testname)
84 @testcase.command('run', help="write the help here")
85 @click.argument('testname', type=click.STRING, required=True)
86 def testcase_run(testname):
87 _testcase.run(testname)
90 @tier.command('list', help="write the help here")
95 @tier.command('show', help="write the help here")
96 @click.argument('tiername', type=click.STRING, required=True)
97 def tier_show(tiername):
101 @tier.command('run', help="write the help here")
102 @click.argument('tiername', type=click.STRING, required=True)
103 def tier_run(tiername):