python from cliff.app import App from cliff.command import Command class Hello(Command): def take_action(self, parsed_args): print('Hello, World!') class MyCLI(App): def __init__(self): super(MyCLI, self).__init__( description='My CLI', version='1.0', command_manager=HelloCommandManager('mycli.command') ) if __name__ == '__main__': MyCLI().run()


上一篇:
下一篇:
切换中文