Skip to content

Commit cc6b955

Browse files
committed
fix and improve golang cli
1 parent 6b7ca84 commit cc6b955

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

presets/golang-cli/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ tags: [ 'Golang' ]
33

44
name: '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
713
preset:
814
- name: 'Copy basic config files'

presets/golang-cli/kool.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)