Crates.io | fold-license |
lib.rs | fold-license |
version | 1.0.0 |
source | src |
created_at | 2022-05-18 21:41:29.008945 |
updated_at | 2022-05-18 21:41:29.008945 |
description | Folding licenses from multiple dirs with `cargo`/Cargo.toml and `yarn`/package.json. |
homepage | |
repository | https://github.com/usagi/fold-license |
max_upload_size | |
id | 589308 |
size | 60,586 |
Folding licenses from multiple dirs with cargo
/Cargo.toml and yarn
/package.json.
fold-license -i path/to/repos1 -i path/to/repos2 -i path/to/repos3
fold-license -i path1/**/*/ -i path2/foo/bar
cargo
/Cargo.toml repos of a Rust project. (Need cargo
CLI installed env.)yarn
/packages.json repos of a Node.js project. (Need yarn
CLI installed env.)cargo install fold-licenses
note: This package include both of bin and lib. In this section, I explain only the bin version. See also lib.rs and docs if you want to use lib version.
fold-license --help
:
USAGE:
fold-license [OPTIONS]
OPTIONS:
-c, --conf <CONF> Use configuration file if set the path. -c path/to/conf.toml
--cargo `cargo`/Cargo.toml, enabled
-f, --format <FORMAT> toml, json, msgpack. -e json
-h, --help Print help information
-i, --in <IN> input glob pattern(s). -i aaa -i bbb -i ccc ...
-o, --out <OUT> output to the path if set. else, output to stdout
-p, --pretty pretty output. **ONLY TO USE WITH A TEXT FORMAT**
-s, --silent silet a log messages
-V, --version Print version information
--yarn `yarn`/packages.json, enabled
fold-license -i . -i path/to/somewhere -i 'target/**/pattern/*' -o target/output.toml -s -p --cargo --yarn
fold-license -c example/example-conf.toml
if you want to use -c
and prepared configuration file:# example-conf.toml; `fold-license -c example/example-conf.toml`
format = "toml"
in = [".", "path/to/somewhere", "target/**/pattern/*"]
out = "target/output.toml"
silent = true
pretty = true
cargo = true
yarn = true