Example #1
0
    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")
Example #2
0
    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")