
    Pi                         d dl 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
 d dlmZ  G d d	          Zd
 Zedk    r e             dS dS )    N)Cat)Copy)Download)List)Run)Validatec                   H    e Zd ZdZd Zdej        fdZdej        ddfdZdS )TuneCLIParserz0Holds all information related to running the CLIc                     t          j        ddd           _         j                             fd            j                            d          }t          j        |           t          j        |           t          j        |           t          j        |           t          j        |           t          j        |           d S )	NtunezWelcome to the torchtune CLI!T)progdescriptionadd_helpc                 6    j                                         S N)_parser
print_help)argsselfs    g/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/torchtune/_cli/tune.py<lambda>z(TuneCLIParser.__init__.<locals>.<lambda>   s    DL4K4K4M4M     funcsubcommands)title)argparseArgumentParserr   set_defaultsadd_subparsersr   creater   r   r   r   r   )r   
subparserss   ` r   __init__zTuneCLIParser.__init__   s    .7
 
 
 	!!'M'M'M'M!NNN \00}0EE

###JJ
:
###
:r   returnc                 4    | j                                         S )zParse CLI arguments)r   
parse_args)r   s    r   r&   zTuneCLIParser.parse_args(   s    |&&(((r   r   Nc                 0    |                     |           dS )zExecute CLINr   )r   r   s     r   runzTuneCLIParser.run,   s    		$r   )	__name__
__module____qualname____doc__r#   r   	Namespacer&   r(    r   r   r
   r
      sl        ::  &)H. ) ) ) )* t      r   r
   c                  t    t                      } |                                 }|                     |           d S r   )r
   r&   r(   )parserr   s     r   mainr1   1   s4    __FD
JJtr   __main__)r   torchtune._cli.catr   torchtune._cli.cpr   torchtune._cli.downloadr   torchtune._cli.lsr   torchtune._cli.runr   torchtune._cli.validater   r
   r1   r)   r.   r   r   <module>r9      s     " " " " " " " " " " " " , , , , , , " " " " " " " " " " " " , , , , , ,       >   zDFFFFF r   