def __init__(self, controller: Controller): ap = SafeArgumentParser( description="Create a new playlist to start adding songs") ap.add_argument("playlist_name", help="The name of the playlist being created.") super().__init__("createplaylist", ap) self.controller = controller
def __init__(self, command_dict: Dict[str, Command]): ap = SafeArgumentParser("Get help on any command") ap.add_argument("command", nargs='?', help="the command on which to receive help") super().__init__(name="help", arg_parser=ap) self.command_dict = command_dict
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Loads a library from disk.") ap.add_argument( "library_name", help= "The name of the library. Used for the file name, with '.json' tacked on to the end." ) super().__init__("load", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Adds a description to a song.") ap.add_argument("song_alias", help="The alias of the song to update.") ap.add_argument("description", help="The description to add to the song.") super().__init__("describesong", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Adds a new song to the library") ap.add_argument( "song_alias", help="Alias by which the song shall forevermore be named") ap.add_argument("song_path", help="The URI where this song can be found") ap.add_argument( "--description", type=str, required=False, help="Describe the song to remember what it actually is tho") super().__init__("addsong", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Add a song to a playlist") ap.add_argument("playlist_name", help="The name of the playlist to add the song to") ap.add_argument("song_alias", help="The alias of the song to add to the playlist") super().__init__("add", ap) self.controller = controller
def __init__(self, websockets_client: websockets.WebSocketClientProtocol): ap = SafeArgumentParser(description="List playlists") super(ListPlaylists, self).__init__("listplaylists", ap) self.ws_client = websockets_client
def __init__(self, websockets_client: websockets.WebSocketClientProtocol): ap = SafeArgumentParser(description="Begin playing audio") super(PlayCommand, self).__init__("play", ap) self.ws_client = websockets_client
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Play a single song") ap.add_argument("song_alias", help="Alias of the song to play") super().__init__("playsong", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Show the current audio device") super().__init__("getdevice", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="List audio devices") ap.add_argument("device_index", help="The index of the device to set as the output") super().__init__("setdevice", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="List audio devices") super().__init__("listdevices", ap) self.controller = controller
def __init__(self, command_dict: Dict[str, Command]): ap = SafeArgumentParser("List commands") super().__init__(name="commands", arg_parser=ap) self.command_dict = command_dict
def __init__(self, controller: Controller): ap = SafeArgumentParser( description="Lists all playlists in the library") super().__init__("listplaylists", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Queue up a set of things") ap.add_argument("alias", help="Alias of the song or playlist to queue") super().__init__("queue", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Stop the currently playing song") super().__init__("stop", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Toggle pause the playing song") super().__init__("pause", ap) self.controller = controller
def __init__(self, controller: Controller): ap = SafeArgumentParser(description="Start playing") super().__init__("play", ap) self.controller = controller