:py:mod:`khard.actions`
=======================

.. py:module:: khard.actions

.. autoapi-nested-parse::

   Names and aliases for the subcommands on the command line



Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   khard.actions.Actions




.. py:class:: Actions

   A class to manage the names and aliases of the command line
   subcommands.

   .. py:attribute:: action_map
      :annotation: :Dict[str, List[str]]

      

   .. py:method:: get_action(alias: str) -> Optional[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
      :returns: the name of the corresponding action or None



   .. py:method:: get_aliases(action: str) -> List[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



   .. py:method:: get_actions() -> Iterable[str]
      :classmethod:

      Find the names of all defined actions.

      :returns: all action names


   .. py:method:: get_all() -> Generator[str, None, None]
      :classmethod:

      Find the names of all defined actions and their aliases.

      :returns: the names of all actions and aliases



