3 """Utilities related to changing the orb's color."""
9 parser = config.add_commandline_args(
10 f"Orb Utils ({__file__})",
11 "Args having to do with controlling Scott's Orb.",
14 "--orb_utils_file_location",
15 default="/Users/scott/orb_color",
18 help="The location of the orb file on whatever machine is hosting it.",
21 "--orb_utils_user_machine",
23 metavar="USER@HOSTNAME",
25 help="The username/machine combo that is hosting the orb.",
29 def make_orb(color: str) -> None:
30 user_machine = config.config['orb_utils_user_machine']
31 orbfile_path = config.config['orb_utils_file_location']
32 os.system(f"ssh {user_machine} 'echo \"{color}\" > {orbfile_path}'")