Register with a CLI instance, listening for events that build the argument table for operations in the configuration dict.
(self, cli)
| 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 |
no outgoing calls