
    )                     8   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  SS	KJr  \R                  " \R                   R"                  \R                   R$                  \R                   R&                  5       " S
 S\R(                  5      5       rg)z&cloud-shell get-mount-command command.    )absolute_import)division)unicode_literals)FilesCompleter)base)util)log)	platformsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
GetMountCommand   zCPrints a command to mount the Cloud Shell home directory via sshfs.a          *{command}* starts your Cloud Shell if it is not already running, then
        prints out a command that allows you to mount the Cloud Shell home
        directory onto your local file system using *sshfs*. You must install
        and run sshfs yourself.

        After mounting the Cloud Shell home directory, any changes you make
        under the mount point on your local file system will be reflected in
        Cloud Shell and vice-versa.
        z        To print a command that mounts a remote directory onto your local file
        system, run:

            $ {command} REMOTE-DIR
        )DESCRIPTIONEXAMPLESc                 Z    [         R                  " U 5        U R                  S[        SS9  g )N	mount_dirze        Local directory onto which the Cloud Shell home directory should be
        mounted.
        )	completerhelp)r   ParseCommonArgsadd_argumentr   )parsers    ,lib/surface/cloud_shell/get_mount_command.pyArgsGetMountCommand.Args6   s.     
       c           
      T   [         R                  R                  5       (       a  [        R                  " S5      e[        R
                  " U5      n[        R                  " SR                  UR                  UR                  UR                  UR                  UR                  S95        g )Nz7get-mount-command is not currently supported on Windowsz_sshfs {user}@{host}: {mount_dir} -p {port} -oIdentityFile={key_file} -oStrictHostKeyChecking=no)userhostr   portkey_file)r
   OperatingSystem	IsWindowsr   UnsupportedPlatformPrepareEnvironmentr	   Printformatr   r   r   r   key)selfargsconnection_infos      r   RunGetMountCommand.RunA   s      **,,$$
CE E //5o	ii GGMv(--(--"nn(--,00 HN Hr    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r*   __static_attributes__r,   r   r   r   r      s2     L	-*  r   r   N)r1   
__future__r   r   r   argcomplete.completersr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.cloud_shellr   googlecloudsdk.corer	   googlecloudsdk.core.utilr
   ReleaseTracksReleaseTrackGABETAALPHACommandr   r,   r   r   <module>rA      sw    - &  ' 1 ( 7 # . D%%(($*;*;*@*@%%++-0dll 0-0r   