
    	                     >   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ej                   ej                  ej                  j                  ej                  j                  ej                  j                          G d d	ej"                                      Zy
)z4Print credential settings to add to the .npmrc file.    )absolute_import)division)unicode_literals)base)flags)settings_utilc                   0    e Zd ZdZdddZed        Zd Zy)NpmzPrint credential settings to add to the .npmrc file.

  Print credential settings to add to the .npmrc file for connecting to an npm
  repository.
  z{description}a      To print a snippet for the repository set in the `artifacts/repository`
    property in the default location:

      $ {command}

    To print a snippet for repository `my-repository` in the default location:

      $ {command} --repository="my-repository"

    To print a snippet using service account key:

      $ {command} --json-key=path/to/key.json

    To print a snippet for the repository set in the `artifacts/repository`
    property with scope @my-company:

      $ {command} --scope=@my-company
    )DESCRIPTIONEXAMPLESc                    t        j                         j                  |        t        j                  d      j                  |        t        j                         j                  |        | j
                  j                  d       y )Nnpmz
value(npm))r   GetRepoFlagAddToParserGetJsonKeyFlagGetScopeFlagdisplay_info	AddFormat)parsers    +lib/surface/artifacts/print_settings/npm.pyArgszNpm.Args=   s]    	##F+	++F3	$$V,
!!,/    c                 0    dt        j                  |      iS )zThis is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      An npm settings snippet.
    r   )r   GetNpmSettingsSnippet)selfargss     r   RunzNpm.RunD   s     =66t<==r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r
   r
      s1     	-2 0 0>r   r
   N)r!   
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.artifactsr   3googlecloudsdk.command_lib.artifacts.print_settingsr   DefaultUniverseOnlyReleaseTracksReleaseTrackALPHABETAGACommandr
   r$   r   r   <module>r0      s    ; &  ' ( 6 M D%%++T->->-C-C%%((*2>$,, 2>* 2>r   