(env: Environment, args: argparse.Namespace)
| 14 | |
| 15 | |
| 16 | def cli_export_args(env: Environment, args: argparse.Namespace) -> ExitStatus: |
| 17 | if args.format == 'json': |
| 18 | data = json.dumps(to_data(options)) |
| 19 | else: |
| 20 | raise NotImplementedError(f'Unexpected format value: {args.format}') |
| 21 | |
| 22 | write_raw_data( |
| 23 | env, |
| 24 | data, |
| 25 | stream_kwargs={'mime_overwrite': FORMAT_TO_CONTENT_TYPE[args.format]}, |
| 26 | ) |
| 27 | return ExitStatus.SUCCESS |
nothing calls this directly
no test coverage detected