
    Mg                         S r SSKrSSKJr  SSKrSSKrSSKJr  SSKJr  \R                  R                  \R                  R                  \5      5      r\SS S-   r\" S5      S	 5       rg)
zFPlugin that creates templated workspace folders for various languages.    N)	copy_tree)Fore)pluginiz/data/workspaces	workspacec                    [         R                  " U R                  S[        R                  5      5      nUR                  SSS9  U R                  S[        R                  5      nUS:X  aO  U R                  S[        R                  5      n[        R                  " [        U5      5      R                  U5        gU R                  S[        R                  5      nUS:X  a(  [        R                  R                  [        U5      5        U R                  S	[        R                  5      nUS
:X  a  [        [        S-   [        U5      5        gUS:X  a  [        [        S-   [        U5      5        gg)zEGenerate a template workspace in the directory specified by the user.z7Please input the path of your new workspace directory.
T)parentsexist_okz<Would you like to clone into an existing Git repo? (yes/no)
yesz:Please input the link to the directory you want to clone.
Nz@Would you like to create a Git repo in this workspace? (yes/no)
zdWould you like to include a starter file and build script foryour desired language? (c++/java/none)
zc++z/cpp_templatejavaz/java_template)pathlibPathinputr   BLUEmkdirgitGitstrcloneRepoinitr   	DATA_PATH)jarvisspathto_clone	to_createto_templates         ?/Users/admin/workspace/ai/Jarvis/jarviscli/plugins/workspace.pygenerate_workspacer      s    <<BDIIO PDJJtdJ+||GTH5<<I499VD	  *KTYYXIEc$i ,,	348II?K e)o-s4y9		)..D	: 
    )__doc__r   distutils.dir_utilr   osr   coloramar   r   r   abspathdirname__file__r   r    r    r   <module>r)      sc    L 
 ( 	   GGOOBGGOOH56	crN//	 ; ;r    