Skip to content

Commit

Permalink
update tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
forhadulislam committed Nov 12, 2021
1 parent 5cf2ef4 commit fefa290
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Empty file added .tooling/.keep
Empty file.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ REQ_GO_MINOR_VERSION := $(shell echo ${PREFERRED_GO_VERSION} | cut -d '.' -f2)
SYSTEM_GO_MINOR_VERSION := $(shell echo ${ACTUAL_GO_VERSION} | cut -d '.' -f2)



SERVICE_ROOT = "./services/"
PACKAGE_ROOT = "./packages/"
RESOURCES_ROOT = "./.resources/"
SERVICE_TEMPLATE_DIR = $(RESOURCES_ROOT)service-template/*
PACKAGE_TEMPLATE_DIR = $(RESOURCES_ROOT)package-template/*

GO_BIN?=snap/bin/go

check-go:
@echo "Actual go version is ${ACTUAL_GO_VERSION}"
@exit 1

new-service:
@read -p "Enter Service Name: " SERVICE_NAME; \
if [ -d "$(SERVICE_ROOT)$$SERVICE_NAME" ]; then \
Expand Down Expand Up @@ -56,7 +63,7 @@ up:
down:
docker-compose down --volumes --remove-orphans

showGo:
showGo: ${GO_BIN} check-go
@echo "Required Go version: ${PREFERRED_GO_VERSION}"
@echo "${ACTUAL_GO_VERSION}"
@echo "${REQ_GO_MINOR_VERSION}"
Expand Down

0 comments on commit fefa290

Please sign in to comment.