From ea8210a805e860154e8b0b9446bdd30043b893e6 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 21 Nov 2024 16:27:33 +0100 Subject: Revert "cli: rename ogcli list scopes to ogcli list scope" This reverts commit 8f5b709212aa1ea28e85a0367747976cf81e0f3a. --- cli/cli.py | 4 ++-- cli/objects/scopes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/cli.py b/cli/cli.py index c3accdd..ed65a4f 100644 --- a/cli/cli.py +++ b/cli/cli.py @@ -76,7 +76,7 @@ class OgCLI(): self.rest = OgREST(cfg['ip'], cfg['port'], cfg['api_token']) def list(self, args): - choices = ['clients', 'scope', 'modes', 'hardware', + choices = ['clients', 'scopes', 'modes', 'hardware', 'client', 'images', 'disks', 'servers', 'repos', 'live'] parser = argparse.ArgumentParser(prog='ogcli list') parser.add_argument('item', choices=choices) @@ -95,7 +95,7 @@ class OgCLI(): OgClient.list_client_hardware(self.rest, args[1:]) elif parsed_args.item == 'modes': OgModes.list_available_modes(self.rest) - elif parsed_args.item == 'scope': + elif parsed_args.item == 'scopes': OgScope.list_scopes(self.rest, args[1:]) elif parsed_args.item == 'images': OgImage.list_images(self.rest) diff --git a/cli/objects/scopes.py b/cli/objects/scopes.py index 548b93c..bfa3f94 100644 --- a/cli/objects/scopes.py +++ b/cli/objects/scopes.py @@ -41,7 +41,7 @@ class OgScope(): @staticmethod def list_scopes(rest, args): - parser = argparse.ArgumentParser(prog='ogcli list scope') + parser = argparse.ArgumentParser(prog='ogcli list scopes') group = parser.add_mutually_exclusive_group(required=False) group.add_argument('--client-ip', action='append', -- cgit v1.2.3-18-g5258