solana/scripts/wallet-help.sh
Greg Fitzgerald b0f8a983c4
Add the solana-wallet documentation (#1744)
* Add the solana-wallet documentation

There doesn't seem to be a way to publish bin docs to crates.io.
Until there is, we can include CLI documentation is the appendix
of the markdown book.

* A command to generate all the usage docs

Usage:

$ scripts/wallet-help.sh >> src/wallet.md
2018-11-08 15:42:20 -07:00

21 lines
391 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"/..
cargo build
export PATH=$PWD/target/debug:$PATH
echo "\`\`\`manpage"
solana-wallet --help
echo "\`\`\`"
echo ""
commands=(address airdrop balance cancel confirm deploy get-transaction-count pay send-signature send-timestamp)
for x in "${commands[@]}"; do
echo "\`\`\`manpage"
solana-wallet "${x}" --help
echo "\`\`\`"
echo ""
done