<s> from awscli . customizations import utils <EOL> from awscli . customizations . commands import BasicCommand <EOL> from awscli . customizations . s3 . subcommands import ListCommand , WebsiteCommand , CpCommand , MvCommand , RmCommand , SyncCommand , MbCommand , RbCommand <EOL> from awscli . customizations . s3 . syncstrategy . register import register_sync_strategies <EOL> def awscli_initialize ( cli ) : <EOL> """<STR_LIT>""" <EOL> cli . register ( "<STR_LIT>" , add_s3 ) <EOL> cli . register ( '<STR_LIT>' , register_sync_strategies ) <EOL> def s3_plugin_initialize ( event_handlers ) : <EOL> """<STR_LIT>""" <EOL> awscli_initialize ( event_handlers ) <EOL> def add_s3 ( command_table , session , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> utils . rename_command ( command_table , '<STR_LIT>' , '<STR_LIT>' ) <EOL> command_table [ '<STR_LIT>' ] = S3 ( session ) <EOL> class S3 ( BasicCommand ) : <EOL> NAME = '<STR_LIT>' <EOL> DESCRIPTION = BasicCommand . FROM_FILE ( '<STR_LIT>' ) <EOL> SYNOPSIS = "<STR_LIT>" <EOL> SUBCOMMANDS = [ <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : ListCommand } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : WebsiteCommand } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : CpCommand } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : MvCommand } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : RmCommand } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : SyncCommand } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : MbCommand } , <EOL> { '<STR_LIT:name>' : '<STR_LIT:rb>' , '<STR_LIT>' : RbCommand } <EOL> ] <EOL> def _run_main ( self , parsed_args , parsed_globals ) : <EOL> if parsed_args . subcommand is None : <EOL> raise ValueError ( "<STR_LIT>" <EOL> "<STR_LIT>" ) </s>
