%PDF- %PDF-
Direktori : /lib/python3/dist-packages/uaclient/cli/__pycache__/ |
Current File : //lib/python3/dist-packages/uaclient/cli/__pycache__/__init__.cpython-312.pyc |
� �Hcf�� � �< � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m Z mZmZ ddl mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z" ddl#m$Z$m%Z% ddl&m'Z' ddl(m)Z)m*Z* ddl+m,Z,m-Z- dd l.m/Z/ dd l0m1Z1m2Z2 ddl3m4Z4m5Z5m6Z6m7Z7m8Z8 ddl9m:Z:m;Z; dd l<m=Z=m>Z> ddl?m@Z@ ddlAmBZBmCZCmDZD ddlEmFZFmGZGmHZH ddlImJZJmKZK ddlLmMZM ddlNmOZO ddlPmQZQmRZR ddlSmTZTmUZU dZVg d�ZWdZX ej� � ZZ ej� e!j� e]� � Z^ G d� dej� � Z`d� Zad� Zbdecfd�Zddecfd�Zedecfd �Zfd!� Zgd"� Zhd#� Zid$� Zjd%� Zkd&� Zld'ej� fd(�Znd)� Zod*� Zpd+� Zqd'ej� d,ecd-ecfd.�Zrd/d0�d1�Zsd2� Ztd3� Zue5j� d4� � Zwe5j� d5� � Zxe5j� e5j� e5j� � e5j� d6� d7e|fd8�� � � � Z}d'ej� d9e~d:e~d7e|fd;�Zd'ej� d7dfd<�Z�e5j� d'ej� d7e|fd=�� Z�d>� Z�e5�j e5j� e5j� d?� d@� � � � Z�d'ej� fdA�Z�d'ej� fdB�Z�d'ej� fdC�Z�dD� Z�d'ej� fdE�Z�dWdF�Z�d'ej� fdG�Z� e5j� � d'ej� fdH�� Z�d'ej� fdI�Z�e5j� e5j� dJ� d'ej� fdK�� � Z�d'ej� dLe1dMecdNeec d7df dO�Z�dP� Z�dXdYdQ�Z�dYdR�Z�dS� Z�dT� Z�e�dXdU�� Z�e]dVk( r e�j, e�� � yy)Zz2Client to manage Ubuntu Pro services on a machine.� N)�List�Optional�Tuple)�actions�api�apt�apt_news�config�contract�daemon�defaults�entitlements�event_logger� exceptions�http�lock�log�messages�secret_manager�security_status�status�timer�util�version)�FullAutoAttachOptions�_full_auto_attach)� _initiate)�MagicAttachRevokeOptions�_revoke)�MagicAttachWaitOptions�_wait)�_reboot_required)� AptProxyScope�setup_apt_proxy)�cli_api�cli_util�disable�enable�fix)�NAME� USAGE_TMPL)�AttachActionsConfigFile�IncorrectTypeError)�PRINT_WRAP_WIDTH)�*create_enable_entitlements_not_found_error�entitlements_disable_order�get_valid_entitlement_names)�ApplicationStatus�CanDisableFailure�CanEnableFailure)�notices�state_files)�Notice)�get_user_or_root_log_file_path)�refresh_motd�update_motd_messages)� safe_dump� safe_loadz$https://auth.contracts.canonical.com)�tabular�json�yamlzpro_logs.tar.gzc � � � e Zd Zdddej dfdee f� fd� Zd� Zd� fd� Z e deee ee f fd�� Z � xZS ) �UAArgumentParserN� base_descc �: �� t �| � ||||�� || _ y )N)�prog�usage�epilog�formatter_class)�super�__init__rB )�selfrD rE rF rG rB � __class__s ��7/usr/lib/python3/dist-packages/uaclient/cli/__init__.pyrI zUAArgumentParser.__init__T s, �� � ������+� � � #��� c � � | j t j � |dk( rt j }| j d|dz � y )Nz&the following arguments are required: � � )�print_usage�sys�stderrr �CLI_TRY_HELP�exit)rJ �messages rL �errorzUAArgumentParser.errore s<