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
This commit is contained in:
Greg Fitzgerald
2018-11-08 15:42:20 -07:00
committed by GitHub
parent 56c77bf482
commit b0f8a983c4
3 changed files with 374 additions and 0 deletions

20
scripts/wallet-help.sh Executable file
View File

@ -0,0 +1,20 @@
#!/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