diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-02 13:44:33 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-02 13:52:36 +0100 |
commit | 020592d6fc398b65fe1bc234e743426bebb9ac03 (patch) | |
tree | 4a080c5f3b4dc25d91208b202d56d1a2be0e6d14 /cli/cli.py | |
parent | 76b4492fe65199c974b35c90b577c9cf977cf78d (diff) |
live: add command to list available live images
Add new command to display the available live images:
# ogcli list live
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -15,6 +15,7 @@ from cli.objects.poweroff import OgPoweroff from cli.objects.reboot import OgReboot from cli.objects.repo import OgRepo from cli.objects.server import OgServer +from cli.objects.live import OgLive from cli.objects.center import OgCenter from cli.objects.room import OgRoom import argparse @@ -72,7 +73,7 @@ class OgCLI(): def list(self, args): choices = ['clients', 'scopes', 'modes', 'hardware', - 'client', 'images', 'disks', 'servers', 'repos'] + 'client', 'images', 'disks', 'servers', 'repos', 'live'] parser = argparse.ArgumentParser(prog='ogcli list') parser.add_argument('item', choices=choices) @@ -100,6 +101,8 @@ class OgCLI(): OgRepo.list_repos(self.rest) elif parsed_args.item == 'servers': OgServer.list_servers(self.rest) + elif parsed_args.item == 'live': + OgLive.list_live(self.rest) def set(self, args): choices = ['modes', 'mode', 'server', 'repo'] |