From 387777dd5f7af340e4b08dce8a220a56eb650220 Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Wed, 18 Oct 2023 19:42:11 +0800 Subject: [PATCH] Remove .exe in Windows --- book/src/help_bn.md | 2 +- book/src/help_general.md | 2 +- book/src/help_vc.md | 2 +- book/src/help_vm.md | 2 +- book/src/help_vm_create.md | 3 +-- book/src/help_vm_import.md | 2 +- book/src/help_vm_move.md | 3 +-- scripts/cli.sh | 3 +++ 8 files changed, 10 insertions(+), 9 deletions(-) diff --git a/book/src/help_bn.md b/book/src/help_bn.md index 633e82649a..a6a4b7f4be 100644 --- a/book/src/help_bn.md +++ b/book/src/help_bn.md @@ -6,7 +6,7 @@ The primary component which connects to the Ethereum 2.0 P2P network and downloa a HTTP API for querying the beacon chain and publishing messages to the network. USAGE: - lighthouse beacon_node [FLAGS] [OPTIONS] + lighthouse.exe beacon_node [FLAGS] [OPTIONS] FLAGS: --always-prefer-builder-payload If set, the beacon node always uses the payload from the builder instead diff --git a/book/src/help_general.md b/book/src/help_general.md index b337c30d72..4906ea82f2 100644 --- a/book/src/help_general.md +++ b/book/src/help_general.md @@ -6,7 +6,7 @@ Ethereum 2.0 client by Sigma Prime. Provides a full-featured beacon node, a vali validator accounts. USAGE: - lighthouse [FLAGS] [OPTIONS] [SUBCOMMAND] + lighthouse.exe [FLAGS] [OPTIONS] [SUBCOMMAND] FLAGS: --disable-log-timestamp If present, do not include timestamps in logging output. diff --git a/book/src/help_vc.md b/book/src/help_vc.md index b6434e8758..f9dfd74e0a 100644 --- a/book/src/help_vc.md +++ b/book/src/help_vc.md @@ -4,7 +4,7 @@ When connected to a beacon node, performs the duties of a staked validator (e.g., proposing blocks and attestations). USAGE: - lighthouse validator_client [FLAGS] [OPTIONS] + lighthouse.exe validator_client [FLAGS] [OPTIONS] FLAGS: --allow-unsynced DEPRECATED: this flag does nothing diff --git a/book/src/help_vm.md b/book/src/help_vm.md index be62e3549c..905df1857c 100644 --- a/book/src/help_vm.md +++ b/book/src/help_vm.md @@ -4,7 +4,7 @@ Utilities for managing a Lighthouse validator client via the HTTP API. USAGE: - lighthouse validator_manager [FLAGS] [OPTIONS] [SUBCOMMAND] + lighthouse.exe validator_manager [FLAGS] [OPTIONS] [SUBCOMMAND] FLAGS: --disable-log-timestamp If present, do not include timestamps in logging output. diff --git a/book/src/help_vm_create.md b/book/src/help_vm_create.md index 684a3c04d2..1fb2756f7e 100644 --- a/book/src/help_vm_create.md +++ b/book/src/help_vm_create.md @@ -7,7 +7,7 @@ Another, optional JSON file is created which contains a list of validator deposi "ethereum/staking-deposit-cli" tool. USAGE: - lighthouse validator_manager create [FLAGS] [OPTIONS] --output-path + lighthouse.exe validator_manager create [FLAGS] [OPTIONS] --output-path FLAGS: --disable-deposits When provided don't generate the deposits JSON file that is commonly used @@ -34,7 +34,6 @@ FLAGS: is not provided, a random password will be used. It is not necessary to keep backups of voting keystore passwords if the mnemonic is safely backed up. - --stdin-inputs If present, read all user inputs from stdin instead of tty. -V, --version Prints version information OPTIONS: diff --git a/book/src/help_vm_import.md b/book/src/help_vm_import.md index ca619b51a3..9acd9969df 100644 --- a/book/src/help_vm_import.md +++ b/book/src/help_vm_import.md @@ -5,7 +5,7 @@ Uploads validators to a validator client using the HTTP API. The validators are generated using the "create-validators" command. USAGE: - lighthouse validator_manager import [FLAGS] [OPTIONS] --validators-file + lighthouse.exe validator_manager import [FLAGS] [OPTIONS] --validators-file FLAGS: --disable-log-timestamp If present, do not include timestamps in logging output. diff --git a/book/src/help_vm_move.md b/book/src/help_vm_move.md index 5b9a8e9f6d..1120ac4fb5 100644 --- a/book/src/help_vm_move.md +++ b/book/src/help_vm_move.md @@ -6,7 +6,7 @@ generated using the "create-validators" command. This command only supports vali local file system (i.e., not Web3Signer validators). USAGE: - lighthouse validator_manager move [FLAGS] [OPTIONS] --dest-vc-token --dest-vc-url --src-vc-token --src-vc-url + lighthouse.exe validator_manager move [FLAGS] [OPTIONS] --dest-vc-token --dest-vc-url --src-vc-token --src-vc-url FLAGS: --disable-log-timestamp If present, do not include timestamps in logging output. @@ -22,7 +22,6 @@ FLAGS: information about your validator and so this flag should be used with caution. For Windows users, the log file permissions will be inherited from the parent folder. - --stdin-inputs If present, read all user inputs from stdin instead of tty. -V, --version Prints version information OPTIONS: diff --git a/scripts/cli.sh b/scripts/cli.sh index 810fb37e54..e2bd12ba8e 100755 --- a/scripts/cli.sh +++ b/scripts/cli.sh @@ -17,6 +17,9 @@ write_to_file() { # We need to add the header and the backticks to create the code block. printf "# %s\n\n\`\`\`\n%s\n\`\`\`" "$program" "$cmd" > "$file" + + # remove .exe when using Windows + sed -i -e 's/".exe"//g' "$file" } # Check if a lighthouse binary exists in the current branch.