-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli
More file actions
executable file
·41 lines (23 loc) · 1.01 KB
/
cli
File metadata and controls
executable file
·41 lines (23 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
import click, os, sys, shutil
# -----------------------------------------------------------------------------
# Group setup
# -----------------------------------------------------------------------------
@click.group(help=click.style(fg='yellow', text='shiftschema dev console'))
def cli():
pass
# -----------------------------------------------------------------------------
# Commands
# -----------------------------------------------------------------------------
@cli.command(name='test',context_settings=dict(ignore_unknown_options=True))
@click.argument('nose_argsuments', nargs=-1, type=click.UNPROCESSED)
def test(nose_argsuments):
""" Run application tests """
from nose2 import discover
params = ['__main__', '-c', 'nose.ini']
params.extend(nose_argsuments)
discover(argv=params)
# -----------------------------------------------------------------------------
# And run
# -----------------------------------------------------------------------------
cli()