summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-12-05 13:25:46 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-12-05 13:25:46 +0100
commit0225502832d171e76a97c8fd652de4437bc9514c (patch)
tree4c73e0ae001340a20e058d2e2d97c29503085ba1 /cli/cli.py
parent85d910d0203370311ef3eba134dafbc49bd46ac1 (diff)
cli: add live set --default command
Add command to set a new default live. Command example: ogcli set live --default --name ogLive-5.4.0-r20220408
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/cli.py b/cli/cli.py
index 2fdabf0..4b808f5 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -117,7 +117,7 @@ class OgCLI():
return ret
def set(self, args):
- choices = ['modes', 'mode', 'repo']
+ choices = ['modes', 'mode', 'repo', 'live']
parser = argparse.ArgumentParser(prog='ogcli set')
parser.add_argument('item', choices=choices)
@@ -132,6 +132,8 @@ class OgCLI():
ret = OgModes.set_modes(self.rest, args[1:])
elif parsed_args.item == 'repo':
ret = OgRepo.set_repo(self.rest, args[1:])
+ elif parsed_args.item == 'live':
+ ret = OgLive.set_live(self.rest, args[1:])
return ret
def request(self, args):