Skip to content

Commit

Permalink
chore: fix .cmdx.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Aug 25, 2021
1 parent e0431d0 commit 181aa55
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .cmdx.yaml
Expand Up @@ -2,30 +2,11 @@
# the configuration file of cmdx - task runner
# https://github.com/suzuki-shunsuke/cmdx
tasks:
- name: init
short: i
script: bash scripts/githook.sh
description: setup git hooks
usage: setup git hooks
- name: coverage
short: c
description: test a package
usage: test a package
script: "bash scripts/coverage.sh {{.path}}"
args:
- name: path
- name: test
short: t
description: test
usage: test
script: go test -v ./... -race -covermode=atomic
- name: fmt
description: format the go code
usage: format the go code
script: bash scripts/fmt.sh
require:
exec:
- gofumpt
- name: vet
short: v
description: go vet
Expand All @@ -40,16 +21,14 @@ tasks:
short: r
description: release the new version
usage: release the new version
script: "bash scripts/release.sh {{.version}}"
script: |
git tag "{{.version}}"
git push origin "{{.version}}"
args:
- name: version
required: true
validate:
- regexp: "^v\\d+\\.\\d+.\\d+(-\\d+)?$"
- name: install
description: go install
usage: go install
script: go install ./cmd/aqua
- name: build
description: go build
usage: go build
Expand Down

0 comments on commit 181aa55

Please sign in to comment.