From d5503689a1a64be409c26e87b102da8e962702ac Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Thu, 19 Dec 2024 18:57:42 -0600 Subject: [PATCH] Remove yaml2json --- yaml2json | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 yaml2json diff --git a/yaml2json b/yaml2json deleted file mode 100755 index 9aef73a..0000000 --- a/yaml2json +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python3 -# -# YAML to JSON conversion script -# Based on https://www.geeksforgeeks.org/convert-yaml-to-json/ -# -# This script takes a YAML file as the first arg, converts the -# YAML content to JSON, and outputs the converted JSON content -# to stdout. - -import json -import sys - -import yaml - -try: - print(json.dumps(yaml.load(open(sys.argv[1]), Loader=yaml.FullLoader), indent=4)) -except IndexError: - print("YAML file must be supplied as first arg") -except FileNotFoundError: - print("YAML file not found")