From 477e2309aecfcdbe3b25c0c6e9754c983cf5e037 Mon Sep 17 00:00:00 2001 From: signalblur <45216760+signalblur@users.noreply.github.com> Date: Sun, 14 Jan 2024 18:00:10 -0500 Subject: [PATCH] Update README.md --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b69e8d0..61cdeb1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,30 @@ # LimaGoggles -A lightweight golang app that can take a new line separated string of text and put it into the JSON Format expected by the LimaCharlie lookup gui +A lightweight golang app that can take a new line separated string of text and put it into the JSON Format expected by the LimaCharlie lookup GUI. + +## Usage +To use the app, run it from the command line, providing the path to the text file and the metadata string as arguments. + +``` +./GoLineMetaFormatter +``` +## Example +This will process sample.txt, associating each line in the file with "example-metadata" and output the result in JSON format. + +``` +./GoLineMetaFormatter ./sample.txt "example-metadata" +``` + +## Output Format + +The output will be in the following JSON format: +``` +{ + "lineValue0": { + "metadata": "metadata-string" + }, + "lineValue1": { + "metadata": "metadata-string" + }, + // ... +} +```