o ed @sXdZddlZddlZddlZddlZddlmmZddlm Z Gdddej Z dS)znetplan get command lineNcs4eZdZfddZddZddZddZZS) NetplanGetcstjdddddS)NgetzRGet a setting by specifying a nested key like "ethernets.eth0.addresses", or "all"T) command_id descriptionleaf)super__init__self __class__./usr/share/netplan/netplan/cli/commands/get.pyrs zNetplanGet.__init__cCsD|jjdtdddd|jjdddd |j|_||dS) Nkey?allzThe nested key in dotted format)typenargsdefaulthelpz --root-dir/z>Read configuration files from this root directory instead of /)rr)parser add_argumentstr command_getfunc parse_args run_commandr r r rrun#s  zNetplanGet.runcCs|dkr |j|ddS|dsdd|f}tdd|dd}t}|j|dtj |||dWddS1sAwYdS)Nr) output_filenetwork.z (?s