2023-01-11 17:09:59 -07:00
|
|
|
#!/usr/bin/env python
|
2024-02-06 14:06:44 -07:00
|
|
|
from scwrypts import execute
|
|
|
|
|
#####################################################################
|
|
|
|
|
from scwrypts.data import convert
|
2023-01-11 17:09:59 -07:00
|
|
|
|
|
|
|
|
|
2024-02-06 14:06:44 -07:00
|
|
|
description = 'convert json into yaml'
|
|
|
|
|
parse_args = []
|
2023-01-11 17:09:59 -07:00
|
|
|
|
2023-02-21 18:44:27 -07:00
|
|
|
def main(_args, stream):
|
|
|
|
|
return convert(
|
|
|
|
|
input_stream = stream.input,
|
|
|
|
|
input_type = 'json',
|
|
|
|
|
output_stream = stream.output,
|
|
|
|
|
output_type = 'yaml',
|
|
|
|
|
)
|
2023-01-11 17:09:59 -07:00
|
|
|
|
2023-02-21 18:44:27 -07:00
|
|
|
#####################################################################
|
2024-02-06 14:06:44 -07:00
|
|
|
if __name__ == '__main__':
|
|
|
|
|
execute(main, description, parse_args)
|