def do_disable(self, arguments): """hide a Module repository, without deleting its contents""" if len(arguments.options) == 1: path = arguments.options[0] try: Repository.disable(path) print "Hidden repository at %s.\n" % path except UnknownRepository: print "The target (%s) is not a drozer module repository.\n" % path else: print "usage: drozer module repository disable /path/to/repository\n"
def do_disable(self, arguments): """hide a Module repository, without deleting its contents""" if len(arguments.options) == 1: path = arguments.options[0] try: Repository.disable(path) print "Hidden repository at %s.\n" % path except UnknownRepository: print "The target (%s) is not a drozer module repository.\n" % path else: print "usage: drozer module repository disable /path/to/repository\n"