From 1d0f6a5d85e128b055bf1d1bd5fe1d0194727960 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 18 Mar 2019 16:21:57 -0700 Subject: [PATCH] Add scripts/install-help.sh --- scripts/install-help.sh | 21 +++++++++++++++++++++ scripts/wallet-help.sh | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 scripts/install-help.sh diff --git a/scripts/install-help.sh b/scripts/install-help.sh new file mode 100755 index 000000000..0927f727a --- /dev/null +++ b/scripts/install-help.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -e + +cd "$(dirname "$0")"/.. + +cargo build --package solana-install +export PATH=$PWD/target/debug:$PATH + +echo "\`\`\`manpage" +solana-install --help +echo "\`\`\`" +echo "" + +commands=(init info deploy update run) + +for x in "${commands[@]}"; do + echo "\`\`\`manpage" + solana-install "${x}" --help + echo "\`\`\`" + echo "" +done diff --git a/scripts/wallet-help.sh b/scripts/wallet-help.sh index 92d156ed9..ebe980501 100755 --- a/scripts/wallet-help.sh +++ b/scripts/wallet-help.sh @@ -3,7 +3,7 @@ set -e cd "$(dirname "$0")"/.. -cargo build +cargo build --package wallet export PATH=$PWD/target/debug:$PATH echo "\`\`\`manpage"