def run(argv): opts = util.parse_docopt(__doc__, argv, True) module = util.select_module("biobox_type", opts["<biobox_type>"]) Biobox = util.get_subclasses(module, ABiobox).next() bbx = Biobox() ctnr = bbx.run(argv) if not '--no-rm' in argv: bbx.remove(ctnr)
def run(argv): opts = util.parse_docopt(__doc__, argv, True) module = util.select_module("biobox_type", opts["<biobox_type>"]) Biobox = next(util.get_subclasses(module, ABiobox)) bbx = Biobox() ctnr = bbx.run(argv) if not '--no-rm' in argv: ctn.remove(ctnr)
def run(): args = input_args() opts = util.parse_docopt(__doc__, args, True) util.select_module("command", opts["<command>"]).run(args)