Files
dbus-prettifier/README.md

37 lines
1.0 KiB
Markdown

# DBus Prettifier
I noticed when working with `qdbus` that I would get long and unformatted
outputs that are extremely difficult to read. This small program will prettify
a file with the output so that it is much more readable.
## Usage
To run the program, simply run it as follows:
```console
qdbus-prettifier <in-file> [out-file]
```
If `<in-file>` is defined as `-` this tells the program to read from `stdin`
allowing input to be piped. If the `[out-file]` option is omitted then output is
sent to `stdout`.
For more information, check out the `-h` option.
## Building
To compile the program, install the Rust suite, namely the compiler and Cargo.
Once installed you can run `cargo build --release` to generate a release build
of the project which will be found at `target/release/dbus-prettifier`.
To install you can use the `install` command as follows:
```console
install -Dm755 target/release/dbus-prettifier /usr/local/bin
```
## License
This program is licensed under the terms & conditions of the [Zlib
License](LICENSE).