0x1949 Team - FAZEMRX - MANAGER
Edit File: cli.cpython-310.pyc
o ���aT � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlmZmZm Z m Z G dd� d�Zdd d �Ze dkr>e�e� � dS dS ) z@Simple command line interface to get/set password from a keyring� N� )�core)�backend)�set_keyring�get_password�set_password�delete_passwordc @ sl e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zedd� �Z edd� �ZdS )�CommandLineToolc C s� t �� | _| jjdddd dd� | jjdddd d d� | jjd ddd � | jjdddd � | jjdddd� | jjddd� | jjddd� d S )Nz-pz--keyring-path�keyring_pathzPath to the keyring backend)�dest�default�helpz-bz--keyring-backend�keyring_backendzName of the keyring backendz--list-backends� store_truezList keyring backends and exit)�actionr z --disablezDisable keyring and exit� operationzget|set|del�?)r �nargs�service)r �username)�argparse�ArgumentParser�parser�add_argument��self� r �-/usr/lib/python3/dist-packages/keyring/cli.py�__init__ sH ������ �zCommandLineTool.__init__c C s| | j �|�}t| ��t|�� |jrt�� D ]}t|� qd S |jr(t �� d S | � � | �� t| d| j � �| j�}|� S )N�do_)r � parse_args�vars�update� list_backendsr �get_all_keyring�print�disabler �_check_args�_load_spec_backend�getattrr � invalid_op)r �argv�args�k�methodr r r �run4 s zCommandLineTool.runc C s: | j r| jd u s | jd u r| j�| j � d�� d S d S d S )Nz requires service and username)r r r r �errorr r r r r'