Skip to content

Commit

Permalink
compiled shellcheckLint using go compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Aug 16, 2024
1 parent cd71800 commit 2a90bf1
Show file tree
Hide file tree
Showing 13 changed files with 1,969 additions and 1,277 deletions.
1 change: 1 addition & 0 deletions .bash-compiler
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FRAMEWORK_ROOT_DIR=${FRAMEWORK_ROOT_DIR:-.}
5 changes: 5 additions & 0 deletions .pre-commit-config-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,8 @@ repos:
pass_filenames: false
require_serial: true
stages: [manual] # GITHUB

- repo: https://github.com/fchastanet/bash-compiler
rev: 0.2.3
hooks:
- id: buildBashBinaries
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,8 @@ repos:
pass_filenames: false
require_serial: true
stages: [] # GITHUB

- repo: https://github.com/fchastanet/bash-compiler
rev: 0.2.3
hooks:
- id: buildBashBinaries
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@ documentation, compile bash files, and many more, ...

### 1.1. Compile command

New compiler (GoLang implementation)

- using generated binary

```bash
export PATH=$PATH:/home/wsl/fchastanet/bash-compiler/bin
FRAMEWORK_ROOT_DIR=$(pwd) bash-compiler \
src/_binaries/commandDefinitions/binary-shellcheckLint.yaml
```

- using go interpreter (has to be executed from bash-compiler folder)

```bash
FRAMEWORK_ROOT_DIR=/home/wsl/fchastanet/bash-dev-env/vendor/bash-tools-framework
FRAMEWORK_ROOT_DIR="${FRAMEWORK_ROOT_DIR}" go run ./cmd/bash-compiler/main.go \
"${FRAMEWORK_ROOT_DIR}/src/_binaries/commandDefinitions/binary-shellcheckLint.yaml"
```

Old compiler version (bash implementation is still available but deprecated)

- **compile** : Inlines all the functions used in the script given in parameter

see related documentation [Compile command](doc/CompileCommand.md).
Expand Down
Loading

0 comments on commit 2a90bf1

Please sign in to comment.