X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=orb_utils.py;h=f1d0ee0d9c781cc418231d39b49e8b9320a2ed7a;hb=532df2c5b57c7517dfb3dddd8c1358fbadf8baf3;hp=5bc6d1a9abd6ae8addba94138b7dc15082a11031;hpb=497fb9e21f45ec08e1486abaee6dfa7b20b8a691;p=python_utils.git diff --git a/orb_utils.py b/orb_utils.py index 5bc6d1a..f1d0ee0 100644 --- a/orb_utils.py +++ b/orb_utils.py @@ -1,12 +1,13 @@ #!/usr/bin/env python3 +# © Copyright 2021-2022, Scott Gasch + """Utilities related to changing the orb's color.""" import os import config - parser = config.add_commandline_args( f"Orb Utils ({__file__})", "Args having to do with controlling Scott's Orb.", @@ -16,20 +17,18 @@ parser.add_argument( default="/Users/scott/orb_color", metavar="FILENAME", type=str, - help="The location of the orb file on whatever machine is hosting it." + help="The location of the orb file on whatever machine is hosting it.", ) parser.add_argument( "--orb_utils_user_machine", default="scott@cheetah.house", metavar="USER@HOSTNAME", type=str, - help="The username/machine combo that is hosting the orb." + help="The username/machine combo that is hosting the orb.", ) def make_orb(color: str) -> None: user_machine = config.config['orb_utils_user_machine'] orbfile_path = config.config['orb_utils_file_location'] - os.system( - f"ssh {user_machine} 'echo \"{color}\" > {orbfile_path}'" - ) + os.system(f"ssh {user_machine} 'echo \"{color}\" > {orbfile_path}'")