summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/cli.py b/cli/cli.py
index ecff067..8e88a11 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -19,6 +19,7 @@ from cli.objects.live import OgLive
from cli.objects.center import OgCenter
from cli.objects.room import OgRoom
from cli.objects.folder import OgFolder
+from cli.objects.session import OgSession
import argparse
import requests
import sys
@@ -124,7 +125,7 @@ class OgCLI():
OgServer.set_server(self.rest, args[1:])
def send(self, args):
- choices = ['reboot', 'refresh', 'poweroff', 'wol']
+ choices = ['reboot', 'refresh', 'poweroff', 'wol', 'session']
parser = argparse.ArgumentParser(prog='ogcli send')
parser.add_argument('send_obj', choices=choices)
@@ -142,6 +143,8 @@ class OgCLI():
OgClient.send_refresh(self.rest, args[1:])
elif parsed_args.send_obj == 'reboot':
OgReboot.send_reboot(self.rest, args[1:])
+ elif parsed_args.send_obj == 'session':
+ OgSession.send_session(self.rest, args[1:])
def restore(self, args):
choices = ['image']