From 78680224ed5d400c9ab0d1a92c01d457f5686ea8 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Fri, 29 Apr 2016 17:58:37 +0200 Subject: Create CLI template for Functest JIRA: FUNCTEST-235 Change-Id: I235a53781fbcde91ccf15d15ea52c96ee2ee9433 Signed-off-by: jose.lausuch --- cli/commands/__init__.py | 0 cli/commands/cli_env.py | 36 ++++++++++++++++++++++++++++++++++++ cli/commands/cli_testcase.py | 24 ++++++++++++++++++++++++ cli/commands/cli_tier.py | 24 ++++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 cli/commands/__init__.py create mode 100644 cli/commands/cli_env.py create mode 100644 cli/commands/cli_testcase.py create mode 100644 cli/commands/cli_tier.py (limited to 'cli/commands') diff --git a/cli/commands/__init__.py b/cli/commands/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/cli/commands/cli_env.py b/cli/commands/cli_env.py new file mode 100644 index 00000000..b2570d37 --- /dev/null +++ b/cli/commands/cli_env.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +# +# jose.lausuch@ericsson.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# + +import click + + +class CliEnv: + def __init__(self): + pass + + def show(self): + click.echo("env show") + + def status(self): + click.echo("env status") + + def getrc(self): + click.echo("env getrc") + + def sourcerc(self): + click.echo("env sourcerc") + + def setdefaults(self): + click.echo("env setdefaults") + + def getdefaults(self): + click.echo("env getdefaults") + + def clean(self): + click.echo("env clean") diff --git a/cli/commands/cli_testcase.py b/cli/commands/cli_testcase.py new file mode 100644 index 00000000..71bfeddc --- /dev/null +++ b/cli/commands/cli_testcase.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# +# jose.lausuch@ericsson.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# + +import click + + +class CliTestcase: + def __init__(self): + pass + + def list(self): + click.echo("testcase list") + + def show(self, testname): + click.echo("testcase show %s" % testname) + + def run(self, testname): + click.echo("testcase run %s" % testname) diff --git a/cli/commands/cli_tier.py b/cli/commands/cli_tier.py new file mode 100644 index 00000000..efb8ad5f --- /dev/null +++ b/cli/commands/cli_tier.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# +# jose.lausuch@ericsson.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# + +import click + + +class CliTier: + def __init__(self): + pass + + def list(self): + click.echo("tier list") + + def show(self, tiername): + click.echo("tier show %s" % tiername) + + def run(self, tiername): + click.echo("tier run %s" % tiername) -- cgit 1.2.3-korg