diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 22:17:39 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 22:22:45 +0100 |
commit | 6b4a7a64eedc3f4feb4a8be0177de059c99507d3 (patch) | |
tree | 08c47df5e8951384d7be062e7e05653faa97b4f4 /cli/cli.py | |
parent | 4286c45877630c7c5614d5cbd32d2a22302d472a (diff) |
repository: delete commandv0.3.3-3
Allow to delete a repository with:
$ ogcli delete repo --id 10
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -197,7 +197,7 @@ class OgCLI(): OgImage.update_image(self.rest, args[1:]) def delete(self, args): - choices = ['server', 'center', 'room', 'client'] + choices = ['server', 'repo', 'center', 'room', 'client'] parser = argparse.ArgumentParser(prog='ogcli delete') parser.add_argument('delete_obj', choices=choices) @@ -209,6 +209,8 @@ class OgCLI(): parsed_args = parser.parse_args([args[0]]) if parsed_args.delete_obj == 'server': OgServer.delete_server(self.rest, args[1:]) + elif parsed_args.delete_obj == 'repo': + OgRepo.delete_repo(self.rest, args[1:]) elif parsed_args.delete_obj == 'center': OgCenter.delete_center(self.rest, args[1:]) elif parsed_args.delete_obj == 'room': |