Skip to content

Commit 5949f81

Browse files
committed
make shell
1 parent 80eb4b6 commit 5949f81

29 files changed

+408
-3206
lines changed

Makefile

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SHELL := /bin/bash
1+
SHELL := /usr/bin/env bash
22

33
.NOTPARALLEL:
44
.SECONDEXPANSION:
@@ -21,23 +21,40 @@ git-reset:
2121

2222
.PHONY: env
2323
env:
24-
@echo "Module: $(MODULE)"
24+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Module \e[0m \e[0;90m<<<\e[0m"
25+
@echo "$(MODULE)"
26+
@echo ""
27+
28+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Go env \e[0m \e[0;90m<<<\e[0m"
2529
$(GO_EXEC) env
2630
@echo ""
27-
@echo ">>> Packages:"
31+
32+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Packages \e[0m \e[0;90m<<<\e[0m"
2833
$(GO_PACKAGES)
2934
@echo ""
30-
@echo ">>> Folders:"
35+
36+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Folders \e[0m \e[0;90m<<<\e[0m"
3137
$(GO_FOLDERS)
3238
@echo ""
33-
@echo ">>> Files:"
39+
40+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Files \e[0m \e[0;90m<<<\e[0m"
3441
$(GO_FILES)
3542
@echo ""
36-
@echo ">>> Tools:"
43+
44+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Tools \e[0m \e[0;90m<<<\e[0m"
3745
@echo '$(TOOLS_BIN)'
3846
@echo ""
39-
@echo ">>> Path:"
47+
48+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Path \e[0m \e[0;90m<<<\e[0m"
4049
@echo "$${PATH}" | tr ':' '\n'
50+
@echo ""
51+
52+
@echo -e "\e[0;90m>>>\e[0m \e[0;94m Shell \e[0m \e[0;90m<<<\e[0m"
53+
@echo "SHELL=$${SHELL}"
54+
@echo "BASH=$${BASH}"
55+
@echo "BASH_VERSION=$${BASH_VERSION}"
56+
@echo "BASH_VERSINFO=$${BASH_VERSINFO}"
57+
@echo ""
4158

4259
.PHONY: checks
4360
checks: vet staticcheck gofumpt goimports golangci-lint-github-actions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The project structure attempts to be on a par with [golang-standards/project-lay
3232
| `cmd/*/main.go` | main function that is intended to glue together the most core level components like: configuration, http server and router, logs initialization, db connections (if any), the `App` and finally the `Main` struct (`/internal/exec.go`) that handles the long running / signal handling / graceful shutdown of the service. |
3333
| `internal/exec.go` | the `Main` struct that wraps the long running / signal handling / graceful shutdown of the service |
3434
| `internal/config` | this package contain the initialization of `koanf` config. |
35-
| `internal/httpx` | this package contains: the setup of the `chi` router, some helpers functions for parsing/writing http request and http response and some middlewares like for logging each request/response. |
35+
| `internal/httpx` | this package contains: the setup of the `chi` router, some helpers functions for parsing/writing http request and http response. |
3636
| `internal/logx` | this package contains the setup/init function for `slog` logger. |
3737

3838
| Folder/File | Description |

internal/httpx/httplog/attr.go

Lines changed: 0 additions & 246 deletions
This file was deleted.

internal/httpx/httplog/inbound.go

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)