cli_manual

This commit is contained in:
chonghe
2023-08-18 08:18:02 +08:00
parent 20ec3811c7
commit 3c7002811e
3 changed files with 1453 additions and 0 deletions

View File

@@ -48,3 +48,12 @@ vc=$($CMD vc --help)
# Print all help strings to the cli.txt file.
printf "%s\n\n" "$general" "$a" "$a_validator" "$a_validator_m" "$a_validator_s" "$a_wallet" "$bn" "$boot" "$dm" "$vc" "$wallet" >> cli.txt
# Run the bash script to generate cli_manual.txt
#./cli_manual.sh
# find the difference and create a patch file: https://www.techtarget.com/searchdatacenter/tip/An-introduction-to-using-diff-and-patch-together
diff -u cli_manual.txt cli.txt > patchfile.patch
# update cli_manual.sh
patch cli_manual.txt patchfile.patch

51
scripts/cli_manual.sh Normal file
View File

@@ -0,0 +1,51 @@
#! /bin/bash
#read version
#read -p "Enter Lighthouse version: " version
version=4.3.0
#download lighthouse binary
binary="curl -LO https://github.com/sigp/lighthouse/releases/download/v$version/lighthouse-v$version-x86_64-unknown-linux-gnu.tar.gz"
#download the binary to the present working directory
cd ./lighthouse/scripts
$binary
#extract
tar xvf lighthouse-v$version-x86_64-unknown-linux-gnu.tar.gz
#remove
rm lighthouse-v$version-x86_64-unknown-linux-gnu.tar.gz
#outputs help text
general=$(./lighthouse --help)
# account manager
a=$(./lighthouse a --help)
# subcommand under account
a_validator=$(./lighthouse a validator --help)
a_validator_m=$(./lighthouse a validator modify --help)
a_validator_s=$(./lighthouse a validator slashing-protection --help)
a_wallet=$(./lighthouse a wallet --help)
# beacon node
bn=$(./lighthouse bn --help)
# boot-node
boot=$(./lighthouse boot_node --help)
# database manager
dm=$(./lighthouse db --help)
# validator client
vc=$(./lighthouse vc --help)
# remove binary file
rm lighthouse
# Print all help strings to the cli.txt file.
printf "%s\n\n" "$general" "$a" "$a_validator" "$a_validator_m" "$a_validator_s" "$a_wallet" "$bn" "$boot" "$dm" "$vc" "$wallet" >> cli_manual.txt

1393
scripts/cli_manual.txt Normal file

File diff suppressed because it is too large Load Diff