first commit
This commit is contained in:
25
app.py
Normal file
25
app.py
Normal file
@ -0,0 +1,25 @@
|
||||
import sys
|
||||
|
||||
from cliff.app import App
|
||||
from cliff.commandmanager import CommandManager
|
||||
|
||||
from commands import addService
|
||||
from commands import deleteService
|
||||
|
||||
class TraefikHelper(App):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
description='Traefik Helper',
|
||||
version='0.1',
|
||||
command_manager=CommandManager('commands'),
|
||||
deferred_help=False,
|
||||
|
||||
)
|
||||
def main(argv=sys.argv[1:]):
|
||||
app = TraefikHelper()
|
||||
app.command_manager.add_command('add', addService.AddService)
|
||||
app.command_manager.add_command('delete', deleteService.DeleteService)
|
||||
return app.run(argv)
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv[1:]))
|
Reference in New Issue
Block a user