o .&ßa³ ã@s|ddlmZddlmZddlmZmZmZmZm Z m Z m Z m Z m Z ddlmZdd„Zdd„Zd d „ZGd d „d eƒZd S)é)Úutils)Ú BasicCommand) Ú ListCommandÚWebsiteCommandÚ CpCommandÚ MvCommandÚ RmCommandÚ SyncCommandÚ MbCommandÚ RbCommandÚPresignCommand)Úregister_sync_strategiescCs| dt¡| dt¡dS)zç This function is require to use the plugin. It calls the functions required to add all necessary commands and parameters to the CLI. This function is necessary to install the plugin using a configuration file zbuilding-command-table.mainzbuilding-command-table.syncN)ÚregisterÚadd_s3r )Úcli©rú=/usr/lib/python3/dist-packages/awscli/customizations/s3/s3.pyÚawscli_initializes rcCs t|ƒdS)z} This is a wrapper to make the plugin built-in to the cli as opposed to specifying it in the configuration file. N)r)Úevent_handlersrrrÚs3_plugin_initialize!s rcKst |dd¡t|ƒ|d<dS)z| This creates a new service object for the s3 plugin. It sends the old s3 commands to the namespace ``s3api``. Ús3Ús3apiN)rÚrename_commandÚS3)Ú command_tableÚsessionÚkwargsrrrr)src @sreZdZdZe d¡ZdZdedœde dœde dœde dœd e dœd e dœd edœd edœd edœg Zdd„ZdS)rrzs3/_concepts.rstzaws s3 [ ...]Úls)ÚnameÚ command_classÚwebsiteÚcpÚmvÚrmÚsyncÚmbÚrbÚpresigncCs|jdur tdƒ‚dS)NzVusage: aws [options] [parameters] aws: error: too few arguments)Ú subcommandÚ ValueError)ÚselfÚ parsed_argsÚparsed_globalsrrrÚ _run_mainBs ÿz S3._run_mainN)Ú__name__Ú __module__Ú __qualname__ÚNAMErÚ FROM_FILEÚ DESCRIPTIONÚSYNOPSISrrrrrr r r r Ú SUBCOMMANDSr-rrrrr2s ÷ rN)Úawscli.customizationsrÚawscli.customizations.commandsrÚ$awscli.customizations.s3.subcommandsrrrrrr r r r Ú.awscli.customizations.s3.syncstrategy.registerr rrrrrrrrÚs ,