Loading cccli/command/server.py +5 −5 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ class Command_server(OptionCommand): self.set_usage("%prog <options>") self.add_option("-c", action="store_true", dest="cache", help="show server cache") self.add_option("-l", action="store_true", dest="commands", help="list server commands") self.add_option("-f", action="store_true", dest="functions", help="show server functions") self.add_option("-v", action="store_true", dest="version", help="show server version") Loading @@ -28,14 +28,14 @@ class Command_server(OptionCommand): self.printer.out(self.usage()) elif self.options.cache: self.show_cache() elif self.options.commands: self.show_commands() elif self.options.functions: self.show_functions() elif self.options.version: self.show_version() else: self.printer.out(self.usage()) def show_commands(self): def show_functions(self): try: for cmds in self.cli.rpc.call("list_commands"): self.printer.out("%s"%cmds["name"]) Loading Loading
cccli/command/server.py +5 −5 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ class Command_server(OptionCommand): self.set_usage("%prog <options>") self.add_option("-c", action="store_true", dest="cache", help="show server cache") self.add_option("-l", action="store_true", dest="commands", help="list server commands") self.add_option("-f", action="store_true", dest="functions", help="show server functions") self.add_option("-v", action="store_true", dest="version", help="show server version") Loading @@ -28,14 +28,14 @@ class Command_server(OptionCommand): self.printer.out(self.usage()) elif self.options.cache: self.show_cache() elif self.options.commands: self.show_commands() elif self.options.functions: self.show_functions() elif self.options.version: self.show_version() else: self.printer.out(self.usage()) def show_commands(self): def show_functions(self): try: for cmds in self.cli.rpc.call("list_commands"): self.printer.out("%s"%cmds["name"]) Loading