HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_forms/buyercall/cli/__pycache__/cli.cpython-310.pyc
o

k�if>�@shddlZddlZddlZddlZej�ej�ej�e�d��Z	Gdd�dej
�Zejed�dd��Z
dS)�N�commandsc@seZdZdd�Zdd�ZdS)�CLIcCsFg}t�t�D]}|�d�r|�d�r|�|dd��q|��|S)z
        Obtain a list of all available commands.

        :param ctx: Click context
        :return: List of commands
        z.py�cmd_����)�os�listdir�
cmd_folder�endswith�
startswith�append�sort)�self�ctxr�filename�r�9/home/arjun/projects/buyercall_forms/buyercall/cli/cli.py�
list_commandss
��zCLI.list_commandsc
Cszztjddkr|�dd�}td|dddg�}W|j	Sty<}zt�d�||��td	�WYd}~|j	Sd}~ww)
z�
        Get a specific command by looking up the module.

        :param ctx: Click context
        :param name: Command name
        :return: Module's cli function
        r��ascii�replacezcli.commands.cmd_N�clizError importing module {0}:
{0}�)
�sys�version_info�encode�
__import__�ImportError�logging�error�format�exitr)rr�name�mod�errr�get_commands����zCLI.get_commandN)�__name__�
__module__�__qualname__rr%rrrrrsr)�clscCsdS)z' Commands to help manage your project. Nrrrrrr1sr)rrr�click�path�abspath�join�dirname�__file__r	�MultiCommandr�commandrrrrr�<module>s�
&