예제 #1
0
 def main(self, options, config):
     console = Console(config)
     if options.subcommand == "list":
         console.list_system_provides()
         return
     if options.subcommand == "add":
         names = NameVersionParser().parse(options.name)
         console.add_system_provides(names)
     elif options.subcommand == "remove":
         names = options.name
         console.remove_system_provides(names)