Skip to content

Commit

Permalink
Refactoring to remove duplicated code
Browse files Browse the repository at this point in the history
- move conf/.env to conf/defaultEnv/.env in order to
  be able to include the .env file using gtpl
  it avoids usage of @embed feature removing the
  need of tar command in BashTools::Conf::requireLoad
- added
  src/_binaries/commandDefinitions/optionsDefault.yaml
  to set default binary options for all the binaries
  beforeParseCallback calling
  defaultBeforeParseCallback
- avoid duplicated code by using the new
  fromDsnOptionLongDescription function
- reformatted long description for all Database's
  binaries
- better optionProfile default value management
  that can be default or empty depending the case
- added
  src/_binaries/commandDefinitions/optionsTables.sh
  src/_binaries/commandDefinitions/optionsRatio.yaml
  in order to correctly order the options in help
- move requirements to beforeParseCallback
- recompiled all binaries to remove deprecated
  option --env-file
  • Loading branch information
fchastanet committed Sep 9, 2024
1 parent a43bd94 commit 469c1ca
Show file tree
Hide file tree
Showing 99 changed files with 3,138 additions and 2,324 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ repos:
exclude: /testsData/

- repo: https://github.com/fchastanet/bash-tools-framework
rev: 5.1.0
rev: 5.1.2
hooks:
- id: fixShebangExecutionBit
- id: awkLint
Expand Down Expand Up @@ -192,6 +192,10 @@ repos:
WARNING,
]
- id: plantuml
exclude: |
(?x)(
^conf/mysql2pumlSkins/default.puml$
)
- repo: local
hooks:
Expand Down
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ repos:
exclude: /testsData/

- repo: https://github.com/fchastanet/bash-tools-framework
rev: 5.1.0
rev: 5.1.2
hooks:
- id: fixShebangExecutionBit
- id: awkLint
Expand Down Expand Up @@ -187,6 +187,10 @@ repos:
WARNING,
]
- id: plantuml
exclude: |
(?x)(
^conf/mysql2pumlSkins/default.puml$
)
- repo: local
hooks:
Expand Down
Loading

0 comments on commit 469c1ca

Please sign in to comment.