
    lKj.                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ej                  ddd	d
edee e
d      f   deedz   e
d      f   fd       Zy)z4Display a tree of a Cyclopts application's commands.    )	Annotated)Console)app)load_app_from_script)	ParameterTNdescription	max_depthscriptr	   z-d)aliasr
   z-mc               t    t        |       \  }}t               j                  |j                  ||             y)a  Display a tree of a Cyclopts application's commands.

    Parameters
    ----------
    script : str
        Python script path, optionally with ``':app_object'`` notation to specify
        the App object. If not specified, will search for App objects in the
        script's global namespace.
    description : bool
        Show each command's short description next to its name.
    max_depth : Optional[int]
        Maximum subcommand depth to display. ``None`` (default) shows all.
    r   N)r   r   printcommand_tree)r   r	   r
   app_obj_s        b/Users/ahmed/devFolder/Ultron/claude-voice/.venv/lib/python3.12/site-packages/cyclopts/cli/tree.pytreer      s0    * &f-JGQIOOG(([I(VW    )__doc__typingr   rich.consoler   cyclopts.clir   cyclopts.loaderr   cyclopts.parameterr   commandstrboolintr    r   r   <module>r       sz    :     0 ( 
 ;?>BXX 4!667	X
 tYT%::;X Xr   