-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
binaries - fixed colors were replaced during compilation
- Loading branch information
1 parent
c70391e
commit 5b37261
Showing
25 changed files
with
216 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1623,23 +1623,23 @@ upgradeGithubReleaseCommand() { | |
echo -e " ${__HELP_OPTION_COLOR}--version-arg <versionArg>${__HELP_NORMAL} {single}" | ||
local -a helpArray | ||
# shellcheck disable=SC2054 | ||
helpArray=($'The argument that will be provided to the currently installed binary to check the version of the software. \n This parameter is needed if \E[2;97m--minimal-version\E[0m argument is used and is different than default value (\E[2;97m--version\E[0m).') | ||
helpArray=($'The argument that will be provided to the currently installed binary\nto check the version of the software. See options constraints below.') | ||
echo -e " $(Array::wrap " " 76 4 "${helpArray[@]}")" | ||
echo ' Default value: --version' | ||
echo -e " ${__HELP_OPTION_COLOR}--current-version${__HELP_NORMAL}, ${__HELP_OPTION_COLOR}-c <currentVersion>${__HELP_NORMAL} {single}" | ||
local -a helpArray | ||
# shellcheck disable=SC2054 | ||
helpArray=($'Sometimes the command to retrieve the version is complicated. \n Some command needs you to parse json or other commands provides multiple sub command versions. In this case you can provide the version you currently have, see examples below.') | ||
helpArray=($'Sometimes the command to retrieve the version is complicated.\nSome command needs you to parse json or other commands provides\nmultiple sub command versions. In this case you can provide the\nversion you currently have, see examples below.\nSee options constraints below.') | ||
echo -e " $(Array::wrap " " 76 4 "${helpArray[@]}")" | ||
echo -e " ${__HELP_OPTION_COLOR}--exact-version${__HELP_NORMAL}, ${__HELP_OPTION_COLOR}-e <exactVersion>${__HELP_NORMAL} {single}" | ||
local -a helpArray | ||
# shellcheck disable=SC2054 | ||
helpArray=($'if provided and currently installed binary is not this \E[2;97mexactVersion\E[0m, \n This exact version of the binary will be installed.') | ||
helpArray=($'if provided and currently installed binary is not this [2;97mexactVersion[0m,\n This exact version of the binary will be installed.\n See options constraints below.') | ||
echo -e " $(Array::wrap " " 76 4 "${helpArray[@]}")" | ||
echo -e " ${__HELP_OPTION_COLOR}--minimal-version${__HELP_NORMAL}, ${__HELP_OPTION_COLOR}-m <minimalVersion>${__HELP_NORMAL} {single}" | ||
local -a helpArray | ||
# shellcheck disable=SC2054 | ||
helpArray=($'if provided and currently installed binary is below this \E[2;97mminimalVersion\E[0m, \n a new version of the binary will be installed. \n If this argument is not provided, the latest binary is unconditionally downloaded from github.') | ||
helpArray=($'if provided and currently installed binary is below this [2;97mminimalVersion[0m,\na new version of the binary will be installed.\nIf this argument is not provided, the latest binary is unconditionally downloaded from github.\nSee options constraints below.') | ||
echo -e " $(Array::wrap " " 76 4 "${helpArray[@]}")" | ||
echo | ||
echo -e "${__HELP_TITLE_COLOR}GLOBAL OPTIONS:${__RESET_COLOR}" | ||
|
@@ -1714,40 +1714,43 @@ upgradeGithubReleaseCommand() { | |
helpArray=(set\ display\ level\ \(one\ of\ OFF\,\ ERROR\,\ WARNING\,\ INFO\,\ DEBUG\,\ TRACE\ value\)) | ||
echo -e " $(Array::wrap " " 76 4 "${helpArray[@]}")" | ||
echo -e """ | ||
[1;37mOPTIONS EXCEPTIONS:[0m | ||
${__HELP_TITLE}OPTIONS CONSTRAINTS:${__HELP_NORMAL} | ||
[2;97m--current-version[0m|[2;97m-c[0m and [2;97m--version-arg[0m are mutually exclusive, | ||
you cannot use both argument at the same time. | ||
${__HELP_OPTION_COLOR}--version-arg${__HELP_NORMAL} parameter is needed if ${__HELP_OPTION_COLOR}--minimal-version${__HELP_NORMAL} argument is used and is different than default value. | ||
[2;97m--exact-version[0m|[2;97m-e[0m and [2;97m--minimal-version[0m|[2;97m-m[0m are mutually exclusive, | ||
you cannot use both argument at the same time. | ||
${__HELP_OPTION_COLOR}--current-version${__HELP_NORMAL}|${__HELP_OPTION_COLOR}-c${__HELP_NORMAL} and ${__HELP_OPTION_COLOR}--version-arg${__HELP_NORMAL} are mutually exclusive, you cannot use both argument at the same time. | ||
[1;37mGITHUB TEMPLATE URLS EXAMPLES:[0m | ||
${__HELP_OPTION_COLOR}--exact-version${__HELP_NORMAL}|${__HELP_OPTION_COLOR}-e${__HELP_NORMAL} and ${__HELP_OPTION_COLOR}--minimal-version${__HELP_NORMAL}|${__HELP_OPTION_COLOR}-m${__HELP_NORMAL} are mutually exclusive, you cannot use both argument at the same time. | ||
Simple ones(Sometimes @version@ template variable has to be specified twice): | ||
'https://github.com/hadolint/hadolint/releases/download/v@version@/hadolint-Linux-x86_64' | ||
'https://github.com/koalaman/shellcheck/releases/download/v@version@/shellcheck-v@[email protected]_64.tar.xz' | ||
'https://github.com/sharkdp/fd/releases/download/v@version@/fd_@version@_amd64.deb' | ||
'https://github.com/sharkdp/bat/releases/download/v@version@/bat_@version@_amd64.deb' | ||
'https://github.com/kubernetes-sigs/kind/releases/download/v@version@/kind-linux-amd64' | ||
'https://github.com/kubernetes/minikube/releases/download/v@version@/minikube-linux-amd64' | ||
'https://github.com/plantuml/plantuml/releases/download/v@version@/plantuml-@[email protected]' | ||
'https://github.com/Versent/saml2aws/releases/download/v@version@/saml2aws_@version@_linux_amd64.tar.gz' | ||
${__HELP_TITLE}GITHUB TEMPLATE URLS EXAMPLES:${__HELP_NORMAL} | ||
If you want to add a condition on architecture(linux, windows, x86, 64/32 bits): | ||
\"https://github.com/docker/compose/releases/download/v@version@/docker-compose-\$(uname -s | tr '[:upper:]' '[:lower:]')-\$(uname -m)\" | ||
Simple ones(Sometimes @version@ template variable has to be specified twice):${__HELP_EXAMPLE} | ||
\"https://github.com/hadolint/hadolint/releases/download/v@version@/hadolint-Linux-x86_64\" | ||
\"https://github.com/koalaman/shellcheck/releases/download/v@version@/shellcheck-v@[email protected]_64.tar.xz\" | ||
\"https://github.com/sharkdp/fd/releases/download/v@version@/fd_@version@_amd64.deb\" | ||
\"https://github.com/sharkdp/bat/releases/download/v@version@/bat_@version@_amd64.deb\" | ||
\"https://github.com/kubernetes-sigs/kind/releases/download/v@version@/kind-linux-amd64\" | ||
\"https://github.com/kubernetes/minikube/releases/download/v@version@/minikube-linux-amd64\" | ||
\"https://github.com/plantuml/plantuml/releases/download/v@version@/plantuml-@[email protected]\" | ||
\"https://github.com/Versent/saml2aws/releases/download/v@version@/saml2aws_@version@_linux_amd64.tar.gz\" | ||
${__HELP_NORMAL} | ||
If you want to add a condition on architecture(linux, windows, x86, 64/32 bits):${__HELP_EXAMPLE} | ||
\"https://github.com/docker/compose/releases/download/v@version@/docker-compose-\$(uname -s | tr \"[:upper:]\" \"[:lower:]\")-\$(uname -m)\" | ||
\"https://github.com/docker/docker-credential-helpers/releases/download/v@version@/docker-credential-wincred-v@[email protected]\$(dpkg --print-architecture).exe\" | ||
\"https://github.com/Blacksmoke16/oq/releases/download/v@version@/oq-v@version@-\$(uname -s)-\$(uname -m)\" | ||
[1;37mCOMMAND EXAMPLES:[0m | ||
${__HELP_NORMAL} | ||
${__HELP_TITLE}COMMAND EXAMPLES:${__HELP_NORMAL} | ||
Download docker-compose latest version | ||
[2;97mupgradeGithubRelease /usr/local/bin/docker-compose \"https://github.com/docker/compose/releases/download/v@version@/docker-compose-\$(uname -s | tr '[:upper:]' '[:lower:]')-\$(uname -m)\"[0m | ||
${__HELP_EXAMPLE}upgradeGithubRelease /usr/local/bin/docker-compose \\ | ||
\"https://github.com/docker/compose/releases/download/v@version@/docker-compose-\$(uname -s | tr \"[:upper:]\" \"[:lower:]\")-\$(uname -m)\"${__HELP_NORMAL} | ||
Download oq specific version | ||
[2;97mupgradeGithubRelease /usr/local/bin/oq --exact-version 1.3.4 \"https://github.com/Blacksmoke16/oq/releases/download/v@version@/oq-v@version@-\$(uname -s)-\$(uname -m)\"[0m | ||
${__HELP_EXAMPLE}upgradeGithubRelease /usr/local/bin/oq --exact-version 1.3.4 \\ | ||
\"https://github.com/Blacksmoke16/oq/releases/download/v@version@/oq-v@version@-\$(uname -s)-\$(uname -m)\"${__HELP_NORMAL} | ||
Download oq specific version correctly retrieving the oq version and not the jq one | ||
[2;97mupgradeGithubRelease /usr/local/bin/oq --exact-version 1.3.4 --version-arg '-V | grep oq:' \"https://github.com/Blacksmoke16/oq/releases/download/v@version@/oq-v@version@-\$(uname -s)-\$(uname -m)\"[0m""" | ||
${__HELP_EXAMPLE}upgradeGithubRelease /usr/local/bin/oq --exact-version 1.3.4 --version-arg '-V | grep oq:' \\ | ||
\"https://github.com/Blacksmoke16/oq/releases/download/v@version@/oq-v@version@-\$(uname -s)-\$(uname -m)\"${__HELP_NORMAL}""" | ||
echo | ||
echo -n -e "${__HELP_TITLE_COLOR}VERSION: ${__RESET_COLOR}" | ||
echo '2.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.