<s> from ebs_deploy import out , parse_env_config <EOL> def add_arguments ( parser ) : <EOL> """<STR_LIT>""" <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , <EOL> help = '<STR_LIT>' , required = True ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , <EOL> help = '<STR_LIT>' , <EOL> action = '<STR_LIT:store_true>' ) <EOL> def execute ( helper , config , args ) : <EOL> """<STR_LIT>""" <EOL> env_config = parse_env_config ( config , args . environment ) <EOL> environments_to_wait_for_term = [ ] <EOL> environments = helper . get_environments ( ) <EOL> for env in environments : <EOL> if env [ '<STR_LIT>' ] == args . environment : <EOL> if env [ '<STR_LIT>' ] != '<STR_LIT>' : <EOL> out ( "<STR_LIT>" + env [ '<STR_LIT>' ] <EOL> + "<STR_LIT>" <EOL> + env [ '<STR_LIT>' ] + "<STR_LIT:)>" ) <EOL> else : <EOL> out ( "<STR_LIT>" + env [ '<STR_LIT>' ] ) <EOL> helper . delete_environment ( env [ '<STR_LIT>' ] ) <EOL> environments_to_wait_for_term . append ( env [ '<STR_LIT>' ] ) <EOL> if not args . dont_wait : <EOL> helper . wait_for_environments ( environments_to_wait_for_term , <EOL> status = '<STR_LIT>' , <EOL> include_deleted = True ) <EOL> out ( "<STR_LIT>" ) <EOL> return <NUM_LIT:0> </s>
