diff options
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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:]) |