File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ tags: [ 'Golang' ]
33
44name : ' CLI App'
55
6+ create :
7+ - name : Creating new Golang CLI Application
8+ actions :
9+ - scripts :
10+ - mkdir -p $CREATE_DIRECTORY
11+
612# Preset defines the workflow for installing this preset in the current working directory
713preset :
814 - name : ' Copy basic config files'
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ scripts:
55 - kool run install
66
77 # Runs go CLI with proper version for kool development
8- go : kool docker --volume=gopath :/go --env='GOOS=$GOOS' golang:1.16.0 go
8+ go : kool docker --volume=cli_gopath :/go --env='GOOS=$GOOS' golang:1.21 go
99
1010 # Compiling cli itself. In case you are on MacOS make sure to have your .env
1111 # file properly setting GOOS=darwin so you will be able to use the binary.
1212 compile : kool run go build -o my-cli
1313 install :
1414 - mv my-cli /usr/local/bin/my-cli
1515 fmt : kool run go fmt ./...
16- lint : kool docker --volume=gopath :/go golangci/golangci-lint:v1.31.0 golangci-lint run -v
16+ lint : kool docker --volume=cli_gopath :/go golangci/golangci-lint:v1.54.1 golangci-lint run -v
You can’t perform that action at this time.
0 commit comments