예제 #1
0
파일: maven.py 프로젝트: rajeshmr/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)
예제 #2
0
파일: maven.py 프로젝트: 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)
예제 #3
0
def Main(args):
  cli = CLI()
  return cli(args)
예제 #4
0
def Main(args):
    cli = CLI()
    return cli(args)