o
    Nrf                     @   sJ   d dl Z d dlZd dlmZ e  e de jdddddd	 ZdS )
    N)hg_name_to_container_nameusernamez	--hg-namedefaultz8The name of the higlass container to import this file to)r   helpc                 C   s8   t |}d| }tjddd|dddg|dd	 d
S )z
    Delete a superuser in the container

    Parameters
    ----------
    hg_name: string
        The name of the container to create a superuser on
    zUfrom django.contrib.auth.models import User; User.objects.get(username="{}").delete()dockerexecz-ipythonzhiglass-server/manage.pyshellutf8)inputN)r   formatsprunencode)r   Zhg_nameZcontainer_nameZ
proc_input r   ^/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/higlass_manage/delete.py	superuser   s   	
r   )	Zclick
subprocessr   Zhiglass_manage.commonr   commandargumentoptionr   r   r   r   r   <module>   s    