Make yaml2json a proper script
This commit is contained in:
4
bin/yaml2json
Executable file
4
bin/yaml2json
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys, yaml, json
|
||||
|
||||
json.dump([d for d in yaml.safe_load_all(sys.stdin)][-1], sys.stdout, indent=4)
|
||||
Reference in New Issue
Block a user