%PDF- %PDF-
Direktori : /snap/core22/current/usr/share/subiquity/console_conf/cmd/__pycache__/ |
Current File : //snap/core22/current/usr/share/subiquity/console_conf/cmd/__pycache__/tui.cpython-310.pyc |
o K��^� � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dl m Z mZ G dd� de j�Z dd� Zd ad d� Zdd � ZedkrGe�e� � dS dS )� N)�setup_logger)�__version__)�ConsoleConf�RecoveryChooserc @ s e Zd Zddd�ZdS )�ClickActionNc C s |j �dt|� d � d S )Nzc(�))�scripts�append�repr)�self�parser� namespace�values� option_string� r �,/usr/share/subiquity/console_conf/cmd/tui.py�__call__ s zClickAction.__call__)N)�__name__� __module__�__qualname__r r r r r r s r c C s� t jddd�}|jddddd� |jd dd dd� |jddd dd� |jdddt �� dd� |jdddg d� |jddddg dd� |jddtdd � |�d!� |jd"dd#d$d� |jd%d&d'd(d)d*� |�| �S )+Nz:console-conf - Pre-Ownership Configuration for Ubuntu Corezconsole-conf)�description�progz --dry-run� store_true�dry_runz)menu-only, do not call installer function)�action�dest�helpz--serial� run_on_serialz&Run the installer over serial console.z--ascii�asciiz Run the installer in ascii mode.z--machine-config�CONFIG�machine_configz Don't Probe. Use probe data file)�metavarr �typer z --screensr �screens)r r �defaultz--script�SCRIPTr z>Execute SCRIPT in a namespace containing view helpers and "ui")r! r r r$ r z--click�PATz+Synthesize a click on a button matching PAT)r! r r z --answersz--recovery-chooser-mode�chooser_systemszXRun as a recovery chooser interacting with the calling process over stdin/stdout streamsz --output-base�store�output_basez .subiquityz#in dryrun, control basedir of files)r r r$ r )�argparse�ArgumentParser�add_argument�FileTyper � parse_args)�argvr r r r � parse_options sR ����� � � � � � r0 z/var/log/console-conf/c C s� t tjdd � �} | jr| jattd� t�d�}|� d� t�� |� d� tj�� | jr;t tj�\}}t| ||�}nt| �}|�� d S )N� )�dir�console_confzStarting console-conf v{}zArguments passed: {})r0 �sysr/ r r) �LOGDIRr �logging� getLogger�info�format�VERSIONr'