Esempio n. 1
0
    def run(self, args):
        action = self.flags.do
        if (action is None) and (len(args) >= 1) and (args[0] in _ACTIONS):
            action = args[0]
            args = args[1:]

        if action is None:
            print("Must specify an action to perform with {} [--do=]action".
                  format(base.get_program_name()))
            return os.EX_USAGE

        repo = maven_repo.MavenRepository(
            local=self.flags.local,
            remotes=self.flags.remotes.split(","),
        )

        action_class = _ACTIONS[action]
        cli = action_class(repo=repo)
        return cli(args)
Esempio n. 2
0
File: maven.py Progetto: davnoe/kiji
    def run(self, args):
        action = self.flags.do
        if (action is None) and (len(args) >= 1) and (args[0] in _ACTIONS):
            action = args[0]
            args = args[1:]

        if action is None:
            print("Must specify an action to perform with {} [--do=]action"
                  .format(base.get_program_name()))
            return os.EX_USAGE

        repo = maven_repo.MavenRepository(
            local=self.flags.local,
            remotes=self.flags.remotes.split(","),
        )

        action_class = _ACTIONS[action]
        cli = action_class(repo=repo)
        return cli(args)
Esempio n. 3
0
def Main(args):
  cli = CLI()
  return cli(args)
Esempio n. 4
0
def Main(args):
    cli = CLI()
    return cli(args)