Files
dbus-prettifier/README.md

37 lines
1.0 KiB
Markdown
Raw Normal View History

2025-01-23 14:36:28 +01:00
# 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.
2025-01-25 10:52:43 +01:00
2025-01-23 14:36:28 +01:00
## Usage
2025-01-25 10:52:43 +01:00
To run the program, simply run it as follows:
```console
2025-09-29 08:04:29 +02:00
qdbus-prettifier <in-file> [out-file]
2025-01-25 10:52:43 +01:00
```
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.
2025-01-23 14:36:28 +01:00
## Building
2025-09-28 20:06:25 +02:00
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`.
2025-01-25 10:52:43 +01:00
2025-09-28 20:06:25 +02:00
To install you can use the `install` command as follows:
2025-01-25 10:52:43 +01:00
```console
2025-09-28 20:06:25 +02:00
install -Dm755 target/release/dbus-prettifier /usr/local/bin
2025-01-25 10:52:43 +01:00
```
2025-01-23 14:36:28 +01:00
## License
This program is licensed under the terms & conditions of the [Zlib
License](LICENSE).