I'd love to be able to call this from the command line!
Possible vision:
accept filename(s) as CLI positional arg(s) to attempt to interpret them as JSON
if no filename(s) passed as args, then read from stdin
by default, output the "fixed" JSON for each arg to stdout (separated by newline if there are multiple input files)
accept -i/--inline flag is passed, then overwrite the original files
Context
I just have a single file on disk that I'd like to fix. I'd prefer to be able to fix it without having to string together Python import statement(s) and expressions to do that.
Describe the solution you'd like
I'd love to be able to call this from the command line!
Possible vision:
-i/--inline
flag is passed, then overwrite the original filesContext
I just have a single file on disk that I'd like to fix. I'd prefer to be able to fix it without having to string together Python import statement(s) and expressions to do that.