Skip to content

Commit ed611a0

Browse files
authored
Merge pull request #62 from ivanilves/issues-22
docs(issues/22): Add help instructions to the Makefile
2 parents 6507daa + 378a6d3 commit ed611a0

File tree

6 files changed

+85
-136
lines changed

6 files changed

+85
-136
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22

33
env:
4-
GO_VERSION: 1.22
4+
GO_VERSION: 1.24
55

66
on:
77
push:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Release
22

33
env:
4-
GO_VERSION: 1.22
4+
GO_VERSION: 1.24
55

66
on:
77
push:

Makefile

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,43 +10,44 @@ SHELL := /bin/bash
1010

1111
-include local.mk
1212

13-
default: dep build
13+
help: ## Print this helpful message
14+
@grep -E '^[a-zA-Z0-9_-]+:.*?\#\# .*$$' Makefile | awk 'BEGIN {FS = ":.*?\#\# "}; {printf "\033[36m%-21s\033[0m %s\n", $$1, $$2}'
1415

15-
all: dep build test install
16+
all: dep build test install ## Bootstrap, build, test and install travelgrunt locally
1617

17-
deploy: build install
18+
deploy: build install ## Build and install travelgrunt locally
1819

19-
dep:
20+
dep: ## Bootstrap the project AKA install/manage Golang dependencies
2021
go mod tidy
2122
go mod vendor
2223

23-
build:
24+
build: ## Build the travelgrunt application
2425
cd ${BUILD_PATH} && go build -tags netgo,osusergo
2526

26-
test:
27+
test: ## Test the travelgrunt application
2728
go test -v ./...
2829

29-
golangci-lint:
30+
golangci-lint: ## Run the linter: golangci-lint
3031
golangci-lint run -v ./...
3132

32-
golint:
33+
golint: ## Run the linter: golint
3334
golint ./...
3435

35-
lint: golangci-lint golint
36+
lint: golangci-lint golint ## Run all the linters
3637

37-
vet:
38+
vet: ## Analyze code for suspicious constructs
3839
go vet ./...
3940

40-
staticcheck:
41+
staticcheck: ## Run staticcheck, a state of the art linter
4142
staticcheck ./...
4243

43-
coverage:
44+
coverage: ## Create test coverage report
4445
go test ./... -race -coverprofile=coverage.out -covermode=atomic
4546

46-
clean:
47+
clean: ## Cleanup the build artifacts
4748
git clean -fdx
4849

49-
install: PREFIX ?= /usr/local
50+
install: PREFIX ?= /usr/local ## Install travelgrunt binary under PREFIX
5051
install:
5152
install ${BUILD_PATH}/travelgrunt ${PREFIX}/bin/
5253

@@ -62,7 +63,7 @@ pull-git-branch:
6263
next-version-tag:
6364
git tag ${NEXT_VERSION} && git push --tags
6465

65-
release: check-git-branch pull-git-branch next-version-tag
66+
release: check-git-branch pull-git-branch next-version-tag ## Release new version of travelgrunt
6667

6768
semantic-commit-check: RANGE ?= main..HEAD
6869
semantic-commit-check: REGEX := "^(feat|fix|refactor|chore|test|style|docs)(\([a-zA-Z0-9\/_-]+\))?: [a-zA-Z]"

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Travel **[Terragrunt](https://terragrunt.gruntwork.io/)**, **[Terraform](https:/
88

99
`travelgrunt` alleviates the pain of hitting endless `cd`/`<TAB>` combos while navigating inside the repo.
1010

11-
:bulb: Video with a brief introduction and a demo is available [here](https://www.youtube.com/watch?v=iqKDJZhfjj4) :movie_camera:
12-
1311
## How to use?
1412

1513
* `cd` to the directory of your [locally cloned] Git repository;

go.mod

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,40 @@
11
module github.com/ivanilves/travelgrunt
22

3-
go 1.21
3+
go 1.24.2
44

55
require (
6-
github.com/fatih/color v1.17.0
7-
github.com/go-git/go-git/v5 v5.9.0
6+
github.com/fatih/color v1.18.0
7+
github.com/go-git/go-git/v5 v5.16.0
88
github.com/manifoldco/promptui v0.9.0
9-
github.com/stretchr/testify v1.8.4
10-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
11-
golang.org/x/term v0.12.0
9+
github.com/stretchr/testify v1.10.0
10+
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0
11+
golang.org/x/term v0.31.0
1212
gopkg.in/yaml.v3 v3.0.1
1313
)
1414

1515
require (
1616
dario.cat/mergo v1.0.0 // indirect
17-
github.com/Microsoft/go-winio v0.6.1 // indirect
18-
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect
19-
github.com/acomagu/bufpipe v1.0.4 // indirect
17+
github.com/Microsoft/go-winio v0.6.2 // indirect
18+
github.com/ProtonMail/go-crypto v1.1.6 // indirect
2019
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
21-
github.com/cloudflare/circl v1.3.3 // indirect
22-
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
20+
github.com/cloudflare/circl v1.6.1 // indirect
21+
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
2322
github.com/davecgh/go-spew v1.1.1 // indirect
2423
github.com/emirpasic/gods v1.18.1 // indirect
2524
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
26-
github.com/go-git/go-billy/v5 v5.5.0 // indirect
27-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
25+
github.com/go-git/go-billy/v5 v5.6.2 // indirect
26+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
2827
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
2928
github.com/kevinburke/ssh_config v1.2.0 // indirect
3029
github.com/mattn/go-colorable v0.1.13 // indirect
3130
github.com/mattn/go-isatty v0.0.20 // indirect
32-
github.com/pjbgf/sha1cd v0.3.0 // indirect
31+
github.com/pjbgf/sha1cd v0.3.2 // indirect
3332
github.com/pmezard/go-difflib v1.0.0 // indirect
34-
github.com/sergi/go-diff v1.1.0 // indirect
35-
github.com/skeema/knownhosts v1.2.0 // indirect
33+
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
34+
github.com/skeema/knownhosts v1.3.1 // indirect
3635
github.com/xanzy/ssh-agent v0.3.3 // indirect
37-
golang.org/x/crypto v0.13.0 // indirect
38-
golang.org/x/mod v0.12.0 // indirect
39-
golang.org/x/net v0.15.0 // indirect
40-
golang.org/x/sys v0.18.0 // indirect
41-
golang.org/x/tools v0.13.0 // indirect
36+
golang.org/x/crypto v0.37.0 // indirect
37+
golang.org/x/net v0.39.0 // indirect
38+
golang.org/x/sys v0.32.0 // indirect
4239
gopkg.in/warnings.v0 v0.1.2 // indirect
4340
)

0 commit comments

Comments
 (0)