def do_library(self,arg): """\ Usage : library Library management commands """ cli = LibraryCli(self) cli.setPrompt("library") arg = str(arg) if len(arg) > 0: line = cli.precmd(arg) cli.onecmd(line) cli.postcmd(True, line) else: cli.cmdloop() self.stdout.write("\n")
def do_platform(self,arg): """\ Usage : platform Platform management commands """ print "TODO" return cli = LibraryCli(self) cli.setPrompt("platform") arg = str(arg) if len(arg) > 0: line = cli.precmd(arg) cli.onecmd(line) cli.postcmd(True, line) else: cli.cmdloop() self.stdout.write("\n")