summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-05-19 09:25:20 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-05-20 08:52:23 +0200
commit397663fd379d79778b660906b74003ee38e75e6b (patch)
tree499fea2f12d79f1562a53ad63cb28c2a678a8294 /cli/cli.py
parente7b302c8b8077952a04256084307a44670f69733 (diff)
send: add send refresh
Send refresh to a given client. $ ogcli send refresh --client-ip 192.168.56.11
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 4a1547b..de05f55 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -82,7 +82,7 @@ class OgCLI():
OgModes.set_modes(self.rest, args[1:])
def send(self, args):
- choices = ['wol', 'poweroff']
+ choices = ['wol', 'poweroff', 'refresh']
parser = argparse.ArgumentParser(prog='ogcli send')
parser.add_argument('send_obj', choices=choices)
parsed_args = parser.parse_args([args[0]])
@@ -91,6 +91,8 @@ class OgCLI():
OgWol.send_wol(self.rest, args[1:])
elif parsed_args.send_obj == 'poweroff':
OgPoweroff.send_poweroff(self.rest, args[1:])
+ elif parsed_args.send_obj == 'refresh':
+ OgClient.send_refresh(self.rest, args[1:])
def restore(self, args):
choices = ['image']