msgpack-cli-0.1.1 is not a library.
MessagePack CLI
This is a simple CLI for converting between MessagePack and JSON. Jump to Installing for installation instructions.
}
{
}
| |
}
Installing
The easiest way to install is to go the releases page and download a version.
Alternatively, you can install with Cargo via cargo install msgpack-cli, or
build the source yourself with cargo build --release.
In either of these cases, you will want to make sure that the executables are in
the right path. You can use the provided makefile with make install to set
this up automatically, copy the binary to your preferred location (the manpage
and autocomplete scripts are also included).
Usage
See above for usage examples. The command line options are as follows:
Usage: msgpack [OPTIONS] [INPUT_FILE]
Arguments:
[INPUT_FILE] Specify the input file to read from. If not given, stdin will be used
Options:
-o, --output <OUTPUT_FILE> Specify the output file to write. If not specified, stdout will be used
-i, --input <INPUT> Specify input via text. (can't use with 'INPUT_FILE')
-j, --to-json Convert from MessagePack to JSON. (can't use with '--to-json')
-m, --to-msgpack Convert from JSON to MessagePack. (can't use with '--to-msgpack')
--hex Use messagepack with hexadecimal strings instead of binary
-p, --pretty Enable pretty output (formatted JSON, spacing for MessagePack when
used with `--hex`)
-v, --verbose Turn verbose mode on
-h, --help Print help information (use `--help` for more detail)
-V, --version Print version information