tempo-cli 0.4.0

Automatic project time tracking CLI tool with beautiful terminal interface
Documentation
o

��i�	�@s:dZddlZddlZddlZdd�Zedkre�dSdS)zt
Python wrapper for the Vibe CLI tool.

This script acts as a Python entry point that calls the actual Vibe binary.
�Nc

Cs�d}dD]}t�|�}|rnq|srttd�rtjngD]}qddl}|j�d�ddg}|D]C}|j�|�rq|�||j	�rqz.t
|d��}|�d	�}d
|��vr[|}	Wd�WnWd�n1sewYWq.Yq.q.|s�t
d�t
d�t
d
�t
d�t
d�t
d�t�d�ztj|gtjdd�ddd�}t�|j�WdSty�t�d�YdSty�}	zt
d|	���t�d�WYd}	~	dSd}	~	ww)z?Main entry point that forwards all arguments to the vibe binaryN)zvibe-binzvibe-rs�pathrz~/.cargo/bin/vibez/usr/local/bin/vibe-binz/opt/homebrew/bin/vibe-bin�rb�2spythonu"❌ Vibe binary not found in PATH.zB
This usually means the installation didn't complete successfully.z%Please try one of these alternatives:z*  1. Install via cargo: cargo install vibez9  2. Install via homebrew: brew install own-path/tap/vibezC  3. Reinstall this package: pip install --force-reinstall vibe-cli�FT)Zcheck�text�u❌ Error running vibe: )�shutil�which�hasattr�sysr�os�
expanduser�isfile�access�X_OK�open�read�lower�print�exit�
subprocess�run�argv�
returncode�KeyboardInterrupt�	Exception)
Z	vibe_pathZbinary_nameZpath_dirrZpossible_pathsr�f�header�result�e�r �U/Users/darylwanji/Desktop/AI-engineer/Vibe/python-package/python-pkg/vibe_cli/main.py�mainsd
�
�
����
���r"�__main__)�__doc__rrrr"�__name__r r r r!�<module>s<
�