:mod:`khard.actions` ==================== .. py:module:: khard.actions .. autoapi-nested-parse:: Names and aliases for the subcommands on the command line Module Contents --------------- .. py:class:: Actions A class to manage the names and aliases of the command line subcommands. .. attribute:: action_map :annotation: :Dict[str, List[str]] .. method:: get_action(cls, alias: str) :classmethod: Find the name of the action for the supplied alias. If no action is asociated with the given alias, None is returned. :param alias: the alias to look up :rturns: the name of the corresponding action or None .. method:: get_aliases(cls, action: str) :classmethod: Find all aliases for the given action. If there is no such action, None is returned. :param action: the action name to look up :returns: the list of aliases corresponding to the action or None .. method:: get_actions(cls) :classmethod: Find the names of all defined actions. :returns: all action names .. method:: get_all(cls) :classmethod: Find the names of all defined actions and their aliases. :returns: the names of all actions and aliases