args-to-json

Crates.ioargs-to-json
lib.rsargs-to-json
version1.0.0
sourcesrc
created_at2019-12-06 02:27:18.853489
updated_at2019-12-06 02:27:18.853489
descriptionReformats command line arguments as JSON array
homepagehttps://github.com/LPGhatguy/args-to-json
repository
max_upload_size
id186789
size5,098
Lucien Greathouse (LPGhatguy)

documentation

README

args-to-json

Lots of debuggers accept the command to run and its arguments as a JSON array. Writing that array by reformatting from your shell's syntax to JSON is annoying.

args-to-json is a small, portable (any OS, any shell) tool that reads in all arguments and prints them out as a list of strings in JSON.

args-to-json works well with tools like clip or xclip too -- to copy your last command as JSON in Bash onto your clipboard, run

args-to-json !! | xclip

The contents of your clipboard can then be pasted directly into a document.

Installation

Windows

Binaries are available from the Releases section on GitHub.

With Rust

Install from crates.io:

cargo install args-to-json

Detailed Usage

args-to-json <...args>

License

args-to-json is available under the MIT license. See LICENSE.txt for details.

Commit count: 0

cargo fmt