
    g                     J    S r SSKJr  SSKJr   " S S\R
                  5      rg)znetplan get command line   )NetplanConfigState)utilsc                   4   ^  \ rS rSrU 4S jrS rS rSrU =r$ )
NetplanGet   c                 $   > [         TU ]  SSSS9  g )NgetzRGet a setting by specifying a nested key like "ethernets.eth0.addresses", or "all"T)
command_iddescriptionleaf)super__init__)self	__class__s    2/usr/share/netplan/netplan_cli/cli/commands/get.pyr   NetplanGet.__init__   s    E%y" 	 	$    c                     U R                   R                  S[        SSSS9  U R                   R                  SSSS	9  U R                  U l        U R                  5         U R                  5         g )
Nkey?allzThe nested key in dotted format)typenargsdefaulthelpz
--root-dir/z>Read configuration files from this root directory instead of /)r   r   )parseradd_argumentstrcommand_getfunc
parse_argsrun_command)r   s    r   runNetplanGet.run   sd      SUQr s  s&f 	! 	h $$	r   c                 X    [        U R                  U R                  5      n[        USS9  g )N )end)r   r   root_dirprint)r   
state_datas     r   r    NetplanGet.command_get(   s     '$--@
jb!r   )r!   )	__name__
__module____qualname____firstlineno__r   r$   r    __static_attributes____classcell__)r   s   @r   r   r      s    $
" "r   r   N)__doc__stater   r'   r   NetplanCommandr    r   r   <module>r7      s"   $  & "%% "r   