o
    ;i                     @   s   d dl Z d dlZd dlmZmZmZ d dlmZ d dlm	Z	 ej
ddddZejd	d
ejddd
fdefddZdZejed
defddZejdddedefddZdS )    N)_profile_store_user_configconfig)Environment)OutputManagerr   z
    Manage client configuration for the current profile.

    Refer to https://modal.com/docs/reference/modal.config for a full explanation
    of what these options mean, and how to set them.
    T)namehelpno_args_is_helpz6Show current configuration values (debugging command).)r   z Redact the `token_secret` value.redactc                 C   s6   t  }| r|drd|d< t t| d S )Ntoken_secretz***)r   to_dictgetr   
print_jsonjsondumps)r
   config_dict r   D/home/ubuntu/.local/lib/python3.10/site-packages/modal/cli/config.pyshow   s   r   aO  Set the default Modal environment for the active profile

The default environment of a profile is used when no --env flag is passed to `modal run`, `modal deploy` etc.

If no default environment is set, and there exists multiple environments in a workspace, an error will be raised
when running a command that requires an environment.
environment_namec                 C   s4   t |   td| i tdt d|   d S )Nenvironmentz$New default environment for profile z: )r   	from_namehydrater   typerechor   )r   r   r   r   set_environment)   s   r   )hiddenkeyvaluec                 C   s   t | |i d S )N)r   )r   r   r   r   r   set1   s   r   )r   r   modal.configr   r   r   modal.environmentsr   modal.outputr   Typer
config_clicommandOptionboolr   SET_DEFAULT_ENV_HELPstrr   r   r   r   r   r   <module>   s"   
	
	
