update help and usage. exclude current submodule in output.

pull/21635/head
John Murret 2024-08-22 09:39:30 -06:00
parent 7a0d3ca36d
commit 2ae8013091
2 changed files with 3 additions and 10 deletions

View File

@ -678,7 +678,8 @@ function get_consul_module_versions {
-e github.com/hashicorp/consul/envoyextensions \
-e github.com/hashicorp/consul/proto-public \
-e github.com/hashicorp/consul/sdk \
-e github.com/hashicorp/consul/troubleshoot)
-e github.com/hashicorp/consul/troubleshoot \
| if [ "$module_dir" != "." ]; then grep -v "consul/$module_dir"; else cat; fi)
echo "--------------"
echo ""
done

View File

@ -16,17 +16,9 @@ Usage: ${SCRIPT_NAME} [<options ...>]
Description:
This script is just a convenience around discover what the Consul
version would be if you were to build it.
This script reports the consul module versions in each of the go.mod files in the Consul repository.
Options:
-s | --source DIR Path to source to build.
Defaults to "${SOURCE_DIR}"
-r | --release Include the release in the version
-g | --git Take git variables into account
-h | --help Print this help text.
EOF
}