summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/cli.py b/cli/cli.py
index c23564c..87fc772 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -9,6 +9,7 @@
from cli.objects.client import OgClient
from cli.objects.scopes import OgScope
from cli.objects.modes import OgModes
+from cli.objects.wol import OgWol
import argparse
import requests
import sys
@@ -73,3 +74,12 @@ class OgCLI():
if parsed_args.item == 'modes':
OgModes.set_modes(self.rest, args[1:])
+
+ def send(self, args):
+ choices = ['wol']
+ parser = argparse.ArgumentParser(prog='ogcli send')
+ parser.add_argument('send_obj', choices=choices)
+ parsed_args = parser.parse_args([args[0]])
+
+ if parsed_args.send_obj == 'wol':
+ OgWol.send_wol(self.rest, args[1:])