Skip to content

Commit

Permalink
bash-compiler 2.0.0 kcl refactoring - rebuilt binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Oct 13, 2024
1 parent ca00ca9 commit 9213c90
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 26 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ repos:
fail_fast: true

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: mixed-line-ending
- id: end-of-file-fixer
Expand Down Expand Up @@ -94,7 +94,7 @@ repos:
)$
- repo: https://github.com/rhysd/actionlint
rev: v1.7.2
rev: v1.7.3
hooks:
- id: actionlint
stages: [pre-commit, pre-push, manual]
Expand Down Expand Up @@ -210,6 +210,6 @@ repos:
stages: [manual] # GITHUB

- repo: https://github.com/fchastanet/bash-compiler
rev: v1.1.0
rev: v2.0.0
hooks:
- id: buildBashBinaries
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repos:
fail_fast: true

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: mixed-line-ending
- id: end-of-file-fixer
Expand Down Expand Up @@ -89,7 +89,7 @@ repos:
)$
- repo: https://github.com/rhysd/actionlint
rev: v1.7.2
rev: v1.7.3
hooks:
- id: actionlint
stages: [pre-commit, pre-push, manual]
Expand Down Expand Up @@ -205,6 +205,6 @@ repos:
stages: [] # GITHUB

- repo: https://github.com/fchastanet/bash-compiler
rev: v1.1.0
rev: v2.0.0
hooks:
- id: buildBashBinaries
13 changes: 4 additions & 9 deletions bin/dbScriptAllDatabases
Original file line number Diff line number Diff line change
Expand Up @@ -1842,8 +1842,7 @@ dbScriptAllDatabasesCommandParse() {
optionQuiet="0"
local -i options_parse_optionParsedCountOptionQuiet
((options_parse_optionParsedCountOptionQuiet = 0)) || true
local -i options_parse_optionParsedCountOptionDatabases
((options_parse_optionParsedCountOptionDatabases = 0)) || true

optionOutputDir=""
local -i options_parse_optionParsedCountOptionOutputDir
((options_parse_optionParsedCountOptionOutputDir = 0)) || true
Expand Down Expand Up @@ -2187,18 +2186,14 @@ dbScriptAllDatabasesCommandParse() {

# Option 17/19
# optionDatabases alts --database
# type: StringArray min 0 max 1
# type: StringArray min 0 max -1
--database)
shift
if (($# == 0)); then
Log::displayError "Command ${SCRIPT_NAME} - Option ${options_parse_arg} - a value needs to be specified"
return 1
fi

if ((options_parse_optionParsedCountOptionDatabases >= 1 )); then
Log::displayError "Command ${SCRIPT_NAME} - Option ${options_parse_arg} - Maximum number of option occurrences reached(1)"
return 1
fi
((++options_parse_optionParsedCountOptionDatabases))
optionDatabases+=("$1")
;;
Expand Down Expand Up @@ -2490,8 +2485,8 @@ dbScriptAllDatabasesCommandHelp() {

echo
echo -e "${__HELP_TITLE_COLOR}SCRIPTS OPTIONS:${__RESET_COLOR}"
echo -e " ${__HELP_OPTION_COLOR}--database <dbName>${__HELP_NORMAL} {single}"
Array::wrap2 ' ' 76 4 " " "If provided will check only this db," "otherwise script will be executed on all dbs of mysql server."
echo -e " ${__HELP_OPTION_COLOR}--database <dbName>${__HELP_NORMAL} {list} (optional)"
Array::wrap2 ' ' 76 4 " " "If provided will check only databases specified," "otherwise script will be executed on all dbs of mysql server."
echo


Expand Down
7 changes: 4 additions & 3 deletions bin/postmanCli
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ declare optionQuiet="0"
declare optionPostmanModelConfig=""
# arguments variables initialization
declare argCommand=""
declare commandArgs=""
declare -a commandArgs=()
# @description parse command options and arguments for postmanCliCommand
postmanCliCommandParse() {
Log::displayDebug "Command ${SCRIPT_NAME} - parse arguments: ${BASH_FRAMEWORK_ARGV[*]}"
Expand Down Expand Up @@ -1999,7 +1999,7 @@ postmanCliCommandParse() {
local -i options_parse_argParsedCountArgCommand
((options_parse_argParsedCountArgCommand = 0)) || true

commandArgs=""
commandArgs=()


# shellcheck disable=SC2034
Expand Down Expand Up @@ -2329,7 +2329,8 @@ postmanCliCommandParse() {
elif (( options_parse_parsedArgIndex >= minParsedArgIndex1 )); then
((++options_parse_argParsedCountCommandArgs))
# shellcheck disable=SC2034
commandArgs="${options_parse_arg}"
# shellcheck disable=SC2034
commandArgs+=("${options_parse_arg}")


# else too much args
Expand Down
2 changes: 1 addition & 1 deletion bin/waitForIt
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ waitForItCommandHelp() {
echo

echo
echo -e "${__HELP_TITLE_COLOR}OPTIONS:${__RESET_COLOR}"
echo -e "${__HELP_TITLE_COLOR}SPECIFIC OPTIONS:${__RESET_COLOR}"
echo -e " ${__HELP_OPTION_COLOR}--algorithm${__HELP_NORMAL}, ${__HELP_OPTION_COLOR}--algo <algorithm>${__HELP_NORMAL} {single}"
algorithmHelpFunction

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ binData:
group: groupScriptsOptions
type: StringArray
help:
"If provided will check only this db,\notherwise script will be
executed on all dbs of mysql server."
"If provided will check only databases specified,\notherwise script
will be executed on all dbs of mysql server."
helpValueName: dbName
alts:
- --database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
Quiet mode, doesn't display any output.

SCRIPTS OPTIONS:
--database <dbName> {single}
If provided will check only this db,
--database <dbName> {list} (optional)
If provided will check only databases specified,
otherwise script will be executed on all dbs of mysql server.
--output, -o <outputDirectory> {single}
Output directory, see log-format option.
Expand Down
2 changes: 1 addition & 1 deletion src/_binaries/Postman/postmanCli/postmanCli-binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ binData:
name: command
variableName: argCommand

- type: String
- type: StringArray
min: 0
max: -1
help: commandArgsHelpFunction
Expand Down
2 changes: 1 addition & 1 deletion src/_binaries/Utils/waitForIt/testsData/waitForIt.help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
--quiet, -q {single}
Quiet mode, doesn't display any output.

OPTIONS:
SPECIFIC OPTIONS:
--algorithm, --algo <algorithm> {single}
Algorithm to use Check algorithms list below.
Default: automatic selection based on commands availability and timeout option value.
Expand Down
2 changes: 1 addition & 1 deletion src/_binaries/Utils/waitForIt/waitForIt-binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ binData:

optionGroups:
waitForItOptionGroup:
title: "OPTIONS:"
title: "SPECIFIC OPTIONS:"

options:
- variableName: optionAlgo
Expand Down

0 comments on commit 9213c90

Please sign in to comment.