Skip to content

Commit

Permalink
ci(go): add show_tool_versions_go_short() to wrapper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Sep 10, 2023
1 parent 47dd38a commit 0cc7402
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/citools/go/go-fixer-go_fix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
main() {
printf "\nRunning go fix\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-errcheck
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare -i retval=0
main() {
printf "\nRunning Go errcheck\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-go-consistent
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
main() {
printf "\nRunning Go go-consistent\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-go_vet
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
main() {
printf "\nRunning Go Vet\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-gocritic
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go gocritic\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-gocyclo
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go gocyclo\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-golangci-lint
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning GoLangCi-Lint\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-gosec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go GoSec\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-ineffassign
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go ineffassign\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-misspell
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go misspell\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-lint-revive
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
main() {
printf "\nRunning Go Lint Revive\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-test-cover
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare -i retval=0
main() {
printf "\nRunning Go Test & Coverage\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
2 changes: 1 addition & 1 deletion .github/citools/go/go-test-cover-report
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cover_annotate() {
main() {
printf "\nRunning Go Test, Coverage & Reports\n\n"

show_tool_versions_go
show_tool_versions_go_short

print_ruler

Expand Down
11 changes: 10 additions & 1 deletion .github/citools/includes/wrapper-library
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ show_tool_versions_rust() {
printf "\n"
} # show_tool_versions_rust()

show_tool_versions_go_short() {
# md_code_tag text
printf "Go version:\n"
printf "\n"
go version | paste /dev/null -
# md_code_tag
printf "\n"
} # show_tool_versions_go_short()

show_tool_versions_go() {
# md_code_tag text
printf "Go version:\n"
Expand All @@ -93,7 +102,7 @@ show_tool_versions_go() {
printf "Installed Go packages:\n"
printf "\n"
# shellcheck disable=SC2012
ls ~/go/bin | paste /dev/null -
ls /root/go/bin | paste /dev/null -
# md_code_tag
printf "\n"

Expand Down

0 comments on commit 0cc7402

Please sign in to comment.