Skip to content

Commit c390a69

Browse files
committed
Updating tasks to run silently with optional VERBOSE flag
1 parent 9d06a9d commit c390a69

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

taskfile.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: '3'
22

3+
vars:
4+
VERBOSE: '{{default "false" .VERBOSE}}'
5+
36
tasks:
47
default:
58
silent: true
@@ -9,40 +12,48 @@ tasks:
912

1013
check:
1114
desc: Run all checks (used in CI)
15+
silent: '{{ne .VERBOSE "true"}}'
1216
cmds:
1317
- task: lint
1418
- task: test
1519
- task: build
1620

1721
clean:
22+
silent: '{{ne .VERBOSE "true"}}'
1823
cmds:
1924
- rm -f glean
2025
- go clean
2126
- rm -rf dist/
2227

2328
build:
29+
silent: '{{ne .VERBOSE "true"}}'
2430
cmds:
2531
- go build -o glean
2632

2733
test:
34+
silent: '{{ne .VERBOSE "true"}}'
2835
cmds:
2936
- go test ./... -v
3037

3138
lint:
39+
silent: '{{ne .VERBOSE "true"}}'
3240
cmds:
3341
- golangci-lint run
3442

3543
lint:fix:
44+
silent: '{{ne .VERBOSE "true"}}'
3645
cmds:
3746
- golangci-lint run --fix
3847

3948
install:
4049
desc: Install the CLI locally
50+
silent: '{{ne .VERBOSE "true"}}'
4151
cmds:
4252
- go install
4353

4454
release:
4555
desc: Create and push a new release
56+
silent: '{{ne .VERBOSE "true"}}'
4657
vars:
4758
VERSION: '{{.VERSION | default ""}}'
4859
FORCE: '{{.FORCE | default "false"}}'

0 commit comments

Comments
 (0)