-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcmdx.yaml
57 lines (57 loc) · 1.37 KB
/
cmdx.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
# the configuration file of cmdx - task runner
# https://github.com/suzuki-shunsuke/cmdx
tasks:
- name: test
short: t
description: test
usage: test
script: go test ./... -race -covermode=atomic
- name: vet
short: v
description: go vet
usage: go vet
script: go vet ./...
- name: lint
short: l
description: lint the go code
usage: lint the go code
script: golangci-lint run
- name: release
short: r
description: release the new version
usage: release the new version
script: |
set -eux
git tag -m "chore: release {{.version}}" "{{.version}}"
git push origin "{{.version}}"
args:
- name: version
required: true
validate:
- regexp: "^v\\d+\\.\\d+.\\d+(-.+)?$"
- name: coverage
short: c
description: coverage test
usage: coverage test
script: "bash scripts/coverage.sh {{.target}}"
args:
- name: target
- name: install
short: i
description: Build and install pinact
usage: Build and install pinact by "go install" command
script: go install ./cmd/pinact
- name: run
description: Run pinact via go run
usage: Run pinact via go run
script: |
go run ./cmd/pinact {{._builtin.args_string}}
- name: usage
description: Generate USAGE.md
usage: Generate USAGE.md
script: bash scripts/generate-usage.sh
- name: js
description: Generate JSON Schema
usage: Generate JSON Schema
script: "go run ./cmd/gen-jsonschema"