tetcore-deps
is a command line tool for managing Tetcore pallet dependencies.
The following commands are available:
Install tetcore-deps
locally with:
bash
cargo install tetcore-deps
tetcore-deps add
Add a new pallet dependency to your Tetcore runtime's Cargo.toml
.
To add the Tetcore Contracts pallet-contracts
pallet:
```sh
$ # Add the pallet pallet-contracts to the runtime whose manifest is specified as argument.
$ tetcore-deps add pallet-contracts --alias contracts --manifest-path ../tetcore-package/tetcore-node-template/runtime/Cargo.toml
Added pallet pallet-contracts v2.0.0-alpha.3 configuration in your node runtime manifest. Added pallet pallet-contracts v2.0.0-alpha.3 configuration in your node runtime. ```
```plain
$ tetcore-deps add --help
USAGE:
tetcore-deps add [FLAGS] [OPTIONS]
FLAGS: -h, --help Prints help information -q, --quiet No output printed to stdout -v, --verbose Use verbose output -V, --version Prints version information
OPTIONS:
-a, --alias
ARGS:
This command allows you to add a new pallet dependency to your Tetcore runtime's Cargo.toml manifest file. tetcore-deps add
will fetch the pallet from crates.io (or the give alternate registry), and add it to your runtime's Cargo.toml
and libs.rs
files.
tetcore-deps graph
Generates a dependency graph of the pallets used by your Tetcore runtime e.g.
This command output a dependency graph for graphviz, please make sure your have it install to be able to generate an image file with the instruction below.
sh
$ # Generate a dependency graph of the pallets used by the runtime whose manifest is specified as argument and pipe it to the dot command to generate an image file.
$ tetcore-deps graph --manifest-path ../tetcore-package/tetcore-node-template/runtime/Cargo.toml | dot -Tpng > graph.png
```plain $ tetcore-deps graph --help tetcore-deps-graph Generate a graph of the Tetcore runtime pallet dependencies.
USAGE: tetcore-deps graph [FLAGS] [OPTIONS]
FLAGS: -h, --help Prints help information -I, --include-versions Include the dependency version on nodes -q, --quiet No output printed to stdout -v, --verbose Use verbose output -V, --version Prints version information
OPTIONS:
--manifest-path
This project is licensed under either of
at your option.