File manager - Edit - /usr/lib/python3/dist-packages/uaclient/__pycache__/cli.cpython-310.pyc
Back
o =�xd� � @ s| d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZ ddl mZmZmZ ddlmZmZmZmZmZmZmZmZmZmZmZ ddlmZ ddlmZm Z m!Z! ddlm"Z# dd lm$Z$m%Z%m&Z& dd l'm(Z( ddl)m*Z*m+Z+ ddl,m-Z- dd l.m/Z/m0Z0 ddl1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7 ddl8m9Z9m:Z: ddl;m<Z<m=Z= ddl>m?Z? ddl@mAZAmBZBmCZC ddlDmEZEmFZFmGZGmHZH ddlImJZJmKZK ddlLmMZM ddlNmOZO ddlPmQZQmRZR ddlSmTZTmUZU dZVdZWdZXdZYdZZd Z[g d!�Z\d"Z]d#ej^ d$ Z_e�`� ZaG d%d&� d&ejb�Zcd�d'd(�Zdd)d*� Zed+d,� Zfd�d-d.�Zgd/d0� Zhd1d2� Zid3d4� Zjd5d6� Zkd7elfd8d9�Zmd7elfd:d;�Znd7elfd<d=�Zod>d?� Zpd@dA� ZqdBdC� ZrdDdE� ZsdFdG� ZtdHdI� ZudJdK� ZvdLdM� ZwdNejxfdOdP�ZydNejxfdQdR�ZzdNejxfdSdT�Z{dUdV� Z|dWdX� Z}dYdZ� Z~dNejxd[eld\elfd]d^�Zd_d`�dadb�Z�dcdd� Z�dedf� Z�eedgdh� �Z�eedidj� �Z�dkdl� Z�efeeege��eddm�dndo� ����Z�efeeege��eddp�dqdr� ����Z�efeeeg� edds�dte�fdudv�����Z�dNejxdwe�dte�fdxdy�Z�dNejxdtdfdzd{�Z�d|d}� Z�eedNejxdte�fd~d��Z�d�d�� Z�eheeedd��d�d�� ���Z�dNejxfd�d��Z�dNejxfd�d��Z�dNejxfd�d��Z�d�d�� Z�dNejxfd�d��Z�d�d�d��Z�dNejxfd�d��Z�eg� dNejxfd�d���Z�dNejxfd�d��Z�eeedd��dNejxfd�d����Z�dNejxd�e9d�eld�eel dtdf d�d��Z�d�d�� Z�d�d�d�d��Z�d�d�d��Z�d�d�d��Z�d�d�� Z�d�d�� Z�e�d�d�d���Z�e�d�k�r�e��e�� � dS dS )�z2Client to manage Ubuntu Pro services on a machine.� N��wraps)�List�Optional�Tuple)�actions�apt�apt_news�config�contract�daemon�defaults�entitlements�event_logger� exceptions�lock)�log)�messages�security�security_status)�status)�timer�util�version)�call_api)�FullAutoAttachOptions�_full_auto_attach)� _initiate)�MagicAttachRevokeOptions�_revoke)�MagicAttachWaitOptions�_wait)�_reboot_required)�_is_attached)� AptProxyScope�setup_apt_proxy)�AttachActionsConfigFile�IncorrectTypeError)�PRINT_WRAP_WIDTH)�,create_enable_entitlements_not_found_message�entitlements_disable_order�get_valid_entitlement_names)�ApplicationStatus�CanDisableFailure�CanEnableFailure�CanEnableFailureReason)�notices�state_files)�Notice)�JsonArrayFormatter)�refresh_motd�update_motd_messages)� safe_dump� safe_load�proz{name} {command} [flags]zAUse {name} {command} --help for more information about a command.z&Try 'pro --help' for more information.z}Account: {account} Subscription: {subscription} Valid until: {contract_expiry} Technical support level: {tech_support_level} z$https://auth.contracts.canonical.com)�tabular�json�yamlzua_logs.tar.gz� z� A new version is available: {version} Please run: sudo apt-get install ubuntu-advantage-tools to get the latest version with new features and bug fixes.c sl e Zd Zdddejdfdee f� fdd� Zdd� Zd � fdd � Z e d eee ee f fdd��Z � ZS )�UAArgumentParserN� base_descc s t � j||||d� || _d S )N)�prog�usage�epilog�formatter_class)�super�__init__r>