Skip to main content
Glama

ClickUp Operator

by noah-vh
cli.cpython-312.pyc9.7 kB
� �MMg����ddlZddlZddlZddlZddlmZddlmZddlm Z m Z m Z m Z m Z  ddlZddlmZmZmZddlmZd �Zej4�ej6d d e�ej8d � �d��ej6dddej:gd��d��ej6dddej<d��ej>e��ej@dejBde de de ddf d�������Z"ed ejFde e e$fd!��Z%e"jM�ej@ej6d"d#ej:gd$��d%��dejBd&e'ddfd'����Z(e"jM�ej@ejRd(d �)�ejRd*d �)�dejBd(e d*e ddfd+�����Z*e"jM�ej@ejRd(d �)�dejBd(e ddfd,����Z+e"jM�ej@ejRd(d �)�dejBd(e ddfd-����Z,e"jMd.d i�/�ej@ej6d0d d1�2�ejRd3d4ejZ�5�dejBd6e'd3e e$ddfd7�����Z.d8e e$d9e e$e$fde/fd:�Z0y#e$r1ej j#d�ej$d�Y��#wxYw);�N)�contextmanager)�Popen)�Any�Dict�IO�Iterator�ListzkIt seems python-dotenv is not installed with cli option. Run pip install "python-dotenv[cli]" to fix this.�)� dotenv_values�set_key� unset_key)� __version__c�� tj�}tjj |d�}|S#t$rYywxYw)zZ Return a path for the ${pwd}/.env file. If pwd does not exist, return None. Nz.env)�os�getcwd�FileNotFoundError�path�join)�cwdrs �VC:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\dotenv/cli.py� enumerate_envrsA�� ��i�i�k�� �7�7�<�<��V� $�D� �K�� ����s�8� A�Az-fz--fileT)� file_okayzNLocation of the .env file, defaults to .env file in current working directory.)�default�type�helpz-qz--quote�always)r�never�autozbWhether to quote or not the variable values. Default mode is always. This does not affect parsing.z-ez--exportFz;Whether to write the dot file as an executable bash script.)�version�ctx�file�quote�export�returnc��|||d�|_y)zAThis script is used to set, get or unset values from a .env file.)�QUOTE�EXPORT�FILEN)�obj)r r!r"r#s r�clir*"s�����>�C�G�rc#��K� t|�5}|��ddd�y#1swYyxYw#t$r3}td|��tj��t d�Yd}~yd}~wwxYw�w)z~ Open a file and yield the corresponding (decoded) stream. Exits with error code 2 if the file cannot be opened. NzError opening env file: )r!�)�open�OSError�print�sys�stderr�exit)r�stream�excs r� stream_filer63sP����� �$�Z�6��L��Z�Z�� �� �(���.�S�Z�Z�@� �Q�����sC�A(� )��)�A(�&�)�A(�)� A%�)A �A(� A%�%A(z--format�simple)r7�json�shellr#zlThe format in which to display the list. Default format is simple, which displays name=value without quotes.�formatc��|jd}t|�5}t|��}ddd�|dk(r,tjt j dd���y|dk(rd nd }t�D]?}||}|�� |d vrtj|�}tj|�|�d |����Ay#1swY��xYw) z!Display all the stored key/value.r(�r4Nr8r-T)�indent� sort_keysr#zexport �)r#r9�=) r)r6r �click�echor8�dumps�sorted�shlexr")r r:r!r4�values�prefix�k�vs r�listrJCs��� �7�7�6�?�D� �T� �f��f�-�� ���� � � �4�:�:�f�Q�$�?�@�$��0��b�����A��q� �A��}��0�0�� � �A��A�� � �f�X�a�S��!��-�.�  � � �s � B8�8C�key)�required�valuec���|jd}|jd}|jd}t|||||�\}}}|rtj|�d|���yt d�y)zStore the given key/value.r(r&r'r@r N)r)r rArBr3)r rKrMr!r"r#�successs r�setrP\sg�� �7�7�6�?�D� �G�G�G� �E� �W�W�X� �F�!�$��U�E�6�B��G�S�%�� � � �c�U�!�E�7�#�$� �Q�r+c���|jd}t|�5}t|��}ddd�j|�}|rt j |�yt d�y#1swY�>xYw)z%Retrieve the value for the given key.r(r<Nr )r)r6r �getrArBr3)r rKr!r4rF� stored_values rrRrRlsX�� �7�7�6�?�D� �T� �f��f�-�� ��:�:�c�?�L�� � � �<� � �Q�� � �s � A%�%A.c��|jd}|jd}t|||�\}}|rtjd|���yt d�y)zRemoves the given key.r(r&zSuccessfully removed r N)r)r rArBr3)r rKr!r"rOs r�unsetrU}sO�� �7�7�6�?�D� �G�G�G� �E��T�3��.�L�G�S�� � � �*�3�%�0�1� �Q�r+�ignore_unknown_options)�context_settingsz--override/--no-overridezKOverride variables from the environment file with those from the .env file.)rr� commandline�����)�nargsr�overridec��|jd}tjj|�st j d|�d�|���t |�j�D��cic]\}}|�|s|tjvr||�� }}}|s t jd�td�t||�}t|�ycc}}w)z/Run command with environment variables present.r(zInvalid value for '-f' "z" does not exist.)r NzNo command given.r ) r)rr�isfilerA� BadParameterr �items�environrBr3� run_command)r r[rXr!rHrI�dotenv_as_dict�rets r�runrd�s��� �7�7�6�?�D� �7�7�>�>�$� �� � �(���.?� @�� � � $�D�)�/�/�1��1�F�Q�� �=�h�!�2�:�:�*=� �1��1��� � � � �&�'� �Q�� �k�>� 2�C���I��s�&#C�command�envc��tjj�}|j|�t |ddd|��}|j �\}}|j S)awRun command in sub process. Runs the command in a sub process with the variables from `env` added in the current environment variables. Parameters ---------- command: List[str] The command and it's parameters env: Dict The additional environment variables Returns ------- int The return code of the command TrF)�universal_newlines�bufsizer9rf)rr`�copy�updater� communicate� returncode)rerf�cmd_env�p�_s rrara�sS��*�j�j�o�o��G� �N�N�3�� �g�!%����  �A� �=�=�?�D�A�q� �<�<�r+)1r8rrEr1� contextlibr� subprocessr�typingrrrrr rA� ImportErrorr2�writer3�mainr r r rrr�group�option�Path�Choice�BOOL�version_option� pass_context�Contextr*�PathLike�strr6re�boolrJ�argumentrPrRrU� UNPROCESSEDrd�intra�r+r�<module>r�s��� � � � �%��0�0��� 4�3� � � ����� ����d�H�m�o��5�:�:��-�c�e�����d�I�x��5�<�<� ;�<�w�y�����d�J���:�:�P�R�����k�*����?�U�]�]�?�#�?�c�?�3�?�4�?��+�R�y�e��?� � �b�k�k� �h�r�#�w�&7� �� �������� ����j�(��5�<�<� E�F�?�@�/�e�m�m�/�T�/�d�/� @��� /�&�������������%������$�'� �U�]�]� �� �S� �T� �(�&��� ��������������%� �U�]�]� �� �� �&��� ��������������%��u�}�}��3��4��&�������7��>��?���� ����� � V�� ���� �R�e�.?�.?�@��U�]�]��d���c���t��A� ��@��*��c����c�3�h���C���{���J�J���I�J� �C�H�H�Q�K��s�L�2M�M

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/noah-vh/mcp-server-clickup'

If you have feedback or need assistance with the MCP directory API, please join our Discord server