Odyssey
tools
cumanage
cli
entry.py
1
"""
2
HomeCU tool for managing Odyssey customers, aka the credit unions.
3
"""
4
5
import
os
6
import
shellish
7
from
.
import
customer
8
from
.
import
db
9
from
.
import
fixture
10
11
12
class
CUManage
(shellish.Command):
13
""" Manage an Odyssey stack. """
14
15
name =
'cumanage'
16
17
def
setup_args(self, parser):
18
self.add_subcommand(
fixture.Fixture
)
19
self.add_subcommand(
db.DB
)
20
self.add_subcommand(
customer.Customer
)
21
self.add_subcommand(Debug)
22
23
24
class
Debug
(shellish.Command):
25
""" Debug command shell. """
26
27
name =
'debug'
28
29
def
run(self, args):
30
os.system(
'bash'
)
31
32
33
CUManage
()()
cli.entry.Debug
Definition:
entry.py:24
cli.db.DB
Definition:
db.py:13
cli.entry.CUManage
Definition:
entry.py:12
cli.customer.Customer
Definition:
customer.py:10
cli.fixture.Fixture
Definition:
fixture.py:18
Generated by
1.8.15