2025-04-07 02:19:25 -04:00
|
|
|
import sys
|
|
|
|
|
|
|
|
from cliff.app import App
|
|
|
|
from cliff.commandmanager import CommandManager
|
|
|
|
|
2025-06-15 12:20:12 -04:00
|
|
|
|
2025-04-07 02:19:25 -04:00
|
|
|
class DCC(App):
|
2025-06-15 12:20:12 -04:00
|
|
|
def __init__(self):
|
|
|
|
super().__init__(
|
|
|
|
description="Doom Command Center",
|
|
|
|
version="0.0.1",
|
|
|
|
command_manager=CommandManager("dcc"),
|
|
|
|
deferred_help=True,
|
|
|
|
)
|
|
|
|
|
|
|
|
def initialize_app(self, argv):
|
|
|
|
pass
|
2025-04-07 02:19:25 -04:00
|
|
|
|
2025-06-15 12:20:12 -04:00
|
|
|
def prepare_to_run_command(self, cmd):
|
|
|
|
pass
|
2025-04-07 02:19:25 -04:00
|
|
|
|
2025-06-15 12:20:12 -04:00
|
|
|
def clean_up(self, cmd, result, err):
|
|
|
|
pass
|
2025-04-07 02:19:25 -04:00
|
|
|
|
|
|
|
|
|
|
|
def main(argv=sys.argv[1:]):
|
2025-06-15 12:20:12 -04:00
|
|
|
dcc = DCC()
|
|
|
|
return dcc.run(argv)
|
|
|
|
|
2025-04-07 02:19:25 -04:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2025-06-15 12:20:12 -04:00
|
|
|
sys.exit(main())
|