
    iN                     p    d dl Z d dlZd dlmZ d dlmZ d dlZd dlmZ  e j                  e
      ZdefdZy)    N)Path)Any)get_rich_toolkitreturnc                     t        d      5 } t        j                         dz  }|j                         s>| j	                  d       t
        j                  d|        t        j                  d      t        j                  |       | j	                  d       t
        j                  d|        d	d	d	       y	# 1 sw Y   y	xY w)
z;
    Unlink by deleting the `.fastapicloud` directory.
    T)minimalz.fastapicloudz>No FastAPI Cloud configuration found in the current directory.z#Configuration directory not found:    u@   FastAPI Cloud configuration has been unlinked successfully! 🚀z!Deleted configuration directory: N)r   r   cwdexistsprintloggerdebugtyperExitshutilrmtree)toolkit
config_dirs     /var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/venv/lib/python3.12/site-packages/fastapi_cloud_cli/commands/unlink.pyunlinkr      s     
$	' G7XXZ/1
  "MMP LL>zlKL**Q-j!XY8EFG G Gs   B$B::C)loggingr   pathlibr   typingr   r   fastapi_cloud_cli.utils.clir   	getLogger__name__r   r        r   <module>r      s7         8			8	$G Gr   