Crates.io | pitufo |
lib.rs | pitufo |
version | 1.1.0 |
source | src |
created_at | 2020-02-03 19:46:31.685356 |
updated_at | 2020-02-16 14:56:50.225838 |
description | A small application that will walk the given path and replace the content of every json file found. The file will either be prettified or minified. |
homepage | https://ian-hamlin.github.io/pitufo/ |
repository | https://github.com/ian-hamlin/pitufo |
max_upload_size | |
id | 204537 |
size | 34,254 |
A small application that will walk the given path and replace the content of every json file found. The file will either be prettified or minified.
pitufo can be installed via cargo.
cargo install pitufo
Usage: pitufo [--follow] [--verbose] [--minify] [--bom] [-m <max-depth>] -p <path>
Options:
--follow follow symbolic links, the default is to not follow.
--verbose verbose mode, output the path of every file found, defaults
to silent
--minify minify the json, the default is to prettify.
--bom look for leading BOM in json files and remove if found, the
default is to take the file as-is.
-m, --max-depth set the maximum depth to recurse
-p, --path the path to search for json files.
--help display usage information
recursively walk the path and prettify or minify everything you can find
./pitufo /GitHub/verb-data/json
./pitufo /GitHub/verb-data/json --minify
prettify or minify everything you can find directly under the path
./pitufo /GitHub/verb-data/json --max-depth 1
./pitufo /GitHub/verb-data/json --minify --max-depth 1
Install Rust as per the instructions here https://www.rust-lang.org/tools/install
git clone https://github.com/ian-hamlin/pitufo.git
cd pitufo
cargo build --release
./target/release/pitufo path/to/json
pitufo will:
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.