diff options
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -209,7 +209,7 @@ class OgCLI(): OgServer.delete_server(self.rest, args[1:]) def add(self, args): - choices = ['server'] + choices = ['server', 'repo'] parser = argparse.ArgumentParser(prog='ogcli add') parser.add_argument('add_obj', choices=choices) @@ -221,3 +221,5 @@ class OgCLI(): parsed_args = parser.parse_args([args[0]]) if parsed_args.add_obj == 'server': OgServer.add_server(self.rest, args[1:]) + elif parsed_args.add_obj == 'repo': + OgRepo.add_repo(self.rest, args[1:]) |