MCPcopy Create free account
hub / github.com/aws/aws-cli / register

Method register

awscli/customizations/flatten.py:170–181  ·  view source on GitHub ↗

Register with a CLI instance, listening for events that build the argument table for operations in the configuration dict.

(self, cli)

Source from the content-addressed store, hash-verified

168 self.service_name = service_name
169
170 def register(self, cli):
171 """
172 Register with a CLI instance, listening for events that build the
173 argument table for operations in the configuration dict.
174 """
175 # Flatten each configured operation when they are built
176 service = self.service_name
177 for operation in self.configs:
178 cli.register(
179 f'building-argument-table.{service}.{operation}',
180 self.flatten_args,
181 )
182
183 def flatten_args(self, command, argument_table, **kwargs):
184 # For each argument with a bag of parameters

Callers 15

test_flatten_registerMethod · 0.95
initializeFunction · 0.95
register_paginationFunction · 0.45
unify_paging_paramsFunction · 0.45
initializeFunction · 0.45
add_to_paramsMethod · 0.45
add_to_paramsMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_flatten_registerMethod · 0.76