Adds simple CLI using clap.
Right now it includes an idl command, i.e. shank idl ..
Uses current dir to derive input and output directories but also supports providing them:
➝ cargo run idl --help
USAGE:
shank idl [OPTIONS]
OPTIONS:
-h, --help Print help information
-o, --out-dir <OUT_DIR> Output directory for the IDL JSON [default: idl]
-r, --crate-root <CRATE_ROOT> Directory of program crate for which to generate the IDL
Adds simple CLI using
clap
. Right now it includes anidl
command, i.e.shank idl ..
Uses current dir to derive input and output directories but also supports providing them: