fold-license
Folding licenses from multiple dirs with cargo/Cargo.toml and yarn/package.json.
- multiple repos dirs support with glob patterns.
- eg.)
fold-license -i path/to/repos1 -i path/to/repos2 -i path/to/repos3 - eg.)
fold-license -i path1/**/*/ -i path2/foo/bar
- eg.)
- Repos type:
-
cargo/Cargo.toml repos of a Rust project. (NeedcargoCLI installed env.) -
yarn/packages.json repos of a Node.js project. (NeedyarnCLI installed env.)
-
- Output to:
- STDOUT
- File
- Output with:
- TOML format, non-pretty or pretty.
- JSON format, non-pretty or pretty.
- MSGPACK format, binary.
- unification from a multiple licenses from a multiple source dirs.
- Run-time configuration from:
- Command line arguments.
- Prepared configuration file.
Screenshots
- Run:

- And then you got the licenses for all of indivisual repos dirs!

Install
Usage
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:
)
- eg.)
fold-license -i . -i path/to/somewhere -i 'target/**/pattern/*' -o target/output.toml -s -p --cargo --yarn - eg.)
fold-license -c example/example-conf.tomlif you want to use-cand prepared configuration file:
# example-conf.toml; `fold-license -c example/example-conf.toml`
= "toml"
= [".", "path/to/somewhere", "target/**/pattern/*"]
= "target/output.toml"
= true
= true
= true
= true
LICENSE
Author
- USAGI.NETWORK / Usagi Ito https://github.com/usagi/