Skip to content

Commit

Permalink
renamed binary-*.yaml files to *-binary.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Sep 3, 2024
1 parent fdf4589 commit 9ebab6b
Show file tree
Hide file tree
Showing 32 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ repos:
args:
[
--expected-warnings-count,
"4",
"5",
--format,
plain,
--theme,
Expand All @@ -183,7 +183,7 @@ repos:
args:
[
--expected-warnings-count,
"6",
"5",
--format,
checkstyle,
--theme,
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ repos:
args:
[
--expected-warnings-count,
"4",
"5",
--format,
plain,
--theme,
Expand All @@ -178,7 +178,7 @@ repos:
args:
[
--expected-warnings-count,
"6",
"5",
--format,
checkstyle,
--theme,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pre-commit install --hook-type pre-commit --hook-type pre-push
```bash
export FRAMEWORK_ROOT_DIR=/home/wsl/fchastanet/bash-tools/vendor/bash-tools-framework
export BASH_TOOLS_ROOT_DIR=/home/wsl/fchastanet/bash-tools
go run ./cmd/bash-compiler $(find "${BASH_TOOLS_ROOT_DIR}/src/_binaries" -name 'binary-*.yaml' -print)
go run ./cmd/bash-compiler $(find "${BASH_TOOLS_ROOT_DIR}/src/_binaries" -name '*-binary.yaml' -print)
```

### 3.3. UT
Expand Down
4 changes: 2 additions & 2 deletions bin/cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Docker/cli/binary-cli.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Docker/cli/cli-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -2219,7 +2219,7 @@ cliCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Docker/cli/binary-cli.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Docker/cli/cli-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/dbImport
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImport/binary-dbImport.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImport/dbImport-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -2715,7 +2715,7 @@ dbImportCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImport/binary-dbImport.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImport/dbImport-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/dbImportProfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportProfile/binary-dbImportProfile.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportProfile/dbImportProfile-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -2362,7 +2362,7 @@ dbImportProfileCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportProfile/binary-dbImportProfile.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportProfile/dbImportProfile-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/dbImportStream
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportStream/binary-dbImportStream.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportStream/dbImportStream-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -2475,7 +2475,7 @@ dbImportStreamCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportStream/binary-dbImportStream.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportStream/dbImportStream-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/dbQueryAllDatabases
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbQueryAllDatabases/binary-dbQueryAllDatabases.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbQueryAllDatabases/dbQueryAllDatabases-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -2487,7 +2487,7 @@ dbQueryAllDatabasesCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbQueryAllDatabases/binary-dbQueryAllDatabases.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbQueryAllDatabases/dbQueryAllDatabases-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/dbScriptAllDatabases
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbScriptAllDatabases/binary-dbScriptAllDatabases.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbScriptAllDatabases/dbScriptAllDatabases-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -2519,7 +2519,7 @@ dbScriptAllDatabasesCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbScriptAllDatabases/binary-dbScriptAllDatabases.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbScriptAllDatabases/dbScriptAllDatabases-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/doc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/doc/binary-doc.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/doc/doc-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -1908,7 +1908,7 @@ docCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/doc/binary-doc.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/doc/doc-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/installRequirements
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/installRequirements/binary-installRequirements.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/installRequirements/installRequirements-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -1627,7 +1627,7 @@ installRequirementsCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/installRequirements/binary-installRequirements.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/installRequirements/installRequirements-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions bin/mysql2puml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Converters/mysql2puml/binary-mysql2puml.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Converters/mysql2puml/mysql2puml-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -1874,7 +1874,7 @@ mysql2pumlCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Converters/mysql2puml/binary-mysql2puml.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Converters/mysql2puml/mysql2puml-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions conf/dbScripts/extractData
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/extractData/binary-extractData.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/extractData/extractData-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -2105,7 +2105,7 @@ extractDataCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/extractData/binary-extractData.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/extractData/extractData-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
###############################################################################
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/install/binary-install.yaml
# GENERATED FROM https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/install/install-binary.yaml
# DO NOT EDIT IT
# @generated
###############################################################################
Expand Down Expand Up @@ -1632,7 +1632,7 @@ installCommandHelp() {
# ------------------------------------------
echo
echo -n -e "${__HELP_TITLE_COLOR}SOURCE FILE: ${__RESET_COLOR}"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/install/binary-install.yaml"
echo "https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/build/install/install-binary.yaml"
# ------------------------------------------
# license section
# ------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Converters/mysql2puml/binary-mysql2puml.yaml
SRC_FILE_PATH: src/_binaries/Converters/mysql2puml/mysql2puml-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/bin/mysql2puml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

AUTHOR: [François Chastanet](https://github.com/fchastanet)

SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Converters/mysql2puml/binary-mysql2puml.yaml
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Converters/mysql2puml/mysql2puml-binary.yaml

LICENSE: MIT License
Copyright (c) 2021-now François Chastanet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Database/dbImport/binary-dbImport.yaml
SRC_FILE_PATH: src/_binaries/Database/dbImport/dbImport-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/bin/dbImport"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

AUTHOR: [François Chastanet](https://github.com/fchastanet)

SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImport/binary-dbImport.yaml
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImport/dbImport-binary.yaml

LICENSE: MIT License
Copyright (c) 2020-now François Chastanet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Database/dbImportProfile/binary-dbImportProfile.yaml
SRC_FILE_PATH: src/_binaries/Database/dbImportProfile/dbImportProfile-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/bin/dbImportProfile"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Allows to override profiles defined in "Default profiles directory"

AUTHOR: [François Chastanet](https://github.com/fchastanet)

SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportProfile/binary-dbImportProfile.yaml
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportProfile/dbImportProfile-binary.yaml

LICENSE: MIT License
Copyright (c) 2021-now François Chastanet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Database/dbImportStream/binary-dbImportStream.yaml
SRC_FILE_PATH: src/_binaries/Database/dbImportStream/dbImportStream-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/bin/dbImportStream"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Allows to override profiles defined in 'Default profiles directory'

AUTHOR: [François Chastanet](https://github.com/fchastanet)

SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportStream/binary-dbImportStream.yaml
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbImportStream/dbImportStream-binary.yaml

LICENSE: MIT License
Copyright (c) 2020-now François Chastanet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Database/dbQueryAllDatabases/binary-dbQueryAllDatabases.yaml
SRC_FILE_PATH: src/_binaries/Database/dbQueryAllDatabases/dbQueryAllDatabases-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/bin/dbQueryAllDatabases"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

AUTHOR: [François Chastanet](https://github.com/fchastanet)

SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbQueryAllDatabases/binary-dbQueryAllDatabases.yaml
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbQueryAllDatabases/dbQueryAllDatabases-binary.yaml

LICENSE: MIT License
Copyright (c) 2020-now François Chastanet
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Database/dbScriptAllDatabases/binary-dbScriptAllDatabases.yaml
SRC_FILE_PATH: src/_binaries/Database/dbScriptAllDatabases/dbScriptAllDatabases-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/bin/dbScriptAllDatabases"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Database/extractData/binary-extractData.yaml
SRC_FILE_PATH: src/_binaries/Database/extractData/extractData-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/conf/dbScripts/extractData"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Allows to override queries defined in 'Default scripts directory'

AUTHOR: [François Chastanet](https://github.com/fchastanet)

SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbScriptAllDatabases/binary-dbScriptAllDatabases.yaml
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Database/dbScriptAllDatabases/dbScriptAllDatabases-binary.yaml

LICENSE: MIT License
Copyright (c) 2020-now François Chastanet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends:
- "${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/frameworkConfig.yaml"

vars:
SRC_FILE_PATH: src/_binaries/Docker/cli/binary-cli.yaml
SRC_FILE_PATH: src/_binaries/Docker/cli/cli-binary.yaml

compilerConfig:
targetFile: "${BASH_TOOLS_ROOT_DIR}/bin/cli"
Expand Down
12 changes: 6 additions & 6 deletions src/_binaries/Docker/cli/testsData/cli.help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
Default configuration: 
Default container: project-apache2
[user {single}]
user to connect on this container
user to connect on this container

Default user: www-data
loaded from profile selected as first arg
or deduced from default configuration.
or deduced from default configuration.

Default configuration: 
Default configuration: 

if first arg is not a profile
[command {single}]
The command to execute
The command to execute

Default command: /bin/bash
loaded from profile selected as first arg
or deduced from default configuration.
Default configuration: 
Default configuration: 

if first arg is not a profile

Expand Down Expand Up @@ -103,7 +103,7 @@ variables finalUserArg, finalContainerArg, finalCom

AUTHOR: [François Chastanet](https://github.com/fchastanet)

SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Docker/cli/binary-cli.yaml
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Docker/cli/cli-binary.yaml

LICENSE: MIT License
Copyright (c) 2020-now François Chastanet
Loading

0 comments on commit 9ebab6b

Please sign in to comment.