(self, resource, *args, **kwargs)
| 422 | |
| 423 | class ApiKeyLoadCommand(resource.ResourceCommand): |
| 424 | def __init__(self, resource, *args, **kwargs): |
| 425 | super(ApiKeyLoadCommand, self).__init__( |
| 426 | resource, |
| 427 | "load", |
| 428 | "Load %s from a file." % resource.get_display_name().lower(), |
| 429 | *args, |
| 430 | **kwargs, |
| 431 | ) |
| 432 | |
| 433 | self.parser.add_argument( |
| 434 | "file", |
| 435 | help=( |
| 436 | "JSON/YAML file containing the %s(s) to load." |
| 437 | % resource.get_display_name().lower() |
| 438 | ), |
| 439 | default="", |
| 440 | ) |
| 441 | |
| 442 | self.parser.add_argument( |
| 443 | "-w", |
| 444 | "--width", |
| 445 | nargs="+", |
| 446 | type=int, |
| 447 | default=None, |
| 448 | help=("Set the width of columns in output."), |
| 449 | ) |
| 450 | |
| 451 | @resource.add_auth_token_to_kwargs_from_cli |
| 452 | def run(self, args, **kwargs): |
nothing calls this directly
no test coverage detected