o .&ßaÙã@sPddlmZddlmZddlmZddlZdd„Zdd„ZGd d „d eƒZ dS) é)Ú BasicCommand)Ú!create_client_from_parsed_globals)Ú b64decodeNcCs| dt¡dS)Nz!building-command-table.ecr-public)ÚregisterÚ_inject_commands)Úcli©rúB/usr/lib/python3/dist-packages/awscli/customizations/ecr_public.pyÚregister_ecr_public_commandsór cKst|ƒ|d<dS)Núget-login-password)ÚECRPublicGetLoginPassword)Ú command_tableÚsessionÚkwargsrrr rr rc@s&eZdZdZdZe d¡Zdd„ZdS)r z?Get a password to be used with container clients such as Dockerr z-ecr-public/get-login-password_description.rstc CsXt|jd|ƒ}| ¡}|d}t|dƒ ¡}| d¡\}}tj |¡tj d¡dS)Nz ecr-publicÚauthorizationDataÚauthorizationTokenú:Ú r) rÚ_sessionÚget_authorization_tokenrÚdecodeÚsplitÚsysÚstdoutÚwrite) ÚselfÚ parsed_argsÚparsed_globalsÚecr_public_clientÚresultÚauthÚ auth_tokenÚ_Úpasswordrrr Ú _run_main#sý  z#ECRPublicGetLoginPassword._run_mainN) Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚNAMErÚ FROM_FILEÚ DESCRIPTIONr%rrrr r sÿ r ) Úawscli.customizations.commandsrÚawscli.customizations.utilsrÚbase64rrr rr rrrr Ús