HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/relenv/__pycache__/__main__.cpython-310.pyc
o

�N�g2�@sbdZddlmZddlmZmZmZmZmZm	Z	ddl
mZdd�Zdd	�Z
ed
kr/e
�dSdS)z
The entrypoint into relenv.
�)�ArgumentParser�)�build�buildenv�check�create�fetch�	toolchain)�__version__cCsLtddd�}|jddtd�|��}tttttt	g}|D]}|�
|�q|S)a
    Build the argparser with its subparsers.

    The modules with commands to add must specify a setup_parser function
    that takes in the subparsers object from `argparse.add_subparsers()`

    :return: The fully setup argument parser
    :rtype: ``argparse.ArgumentParser``
    �relenvZRelenv)�prog�descriptionz	--version�version)�actionr)r�add_argumentr
�add_subparsersrr	rrrrZsetup_parser)Z	argparserZ
subparsersZmodules_to_setup�mod�r�C/opt/saltstack/salt/lib/python3.10/site-packages/relenv/__main__.py�	setup_cli
s 
��rcCsHt�}|��}z|�|�WdSty#|��|�dd�YdSw)z9
    Run the relenv cli and disbatch to subcommands.
    rz
No subcommand given...

N)r�
parse_args�func�AttributeError�
print_help�exit)�parser�argsrrr�main,s�r�__main__N)�__doc__�argparser�rrrrrr	�commonr
rr�__name__rrrr�<module>s 
�