7 sh: git describe --long 2>/dev/null || echo ""
11 GOEXPERIMENT: greenteagc
15 desc: Install golangci-lint
17 - go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
22 desc: Run base linters
24 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
29 desc: Run base linters and fix issues
31 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
38 LDFLAGS: '{{if .VERSION}}-ldflags="-X github.com/charmbracelet/crush/internal/version.Version={{.VERSION}}"{{end}}'
40 - go build {{.LDFLAGS}} .
48 - ./crush {{.CLI_ARGS}}
53 - go test ./... {{.CLI_ARGS}}
56 desc: Run tests and record all VCR cassettes again
59 - rm -r internal/agent/testdata
60 - go test -v -count=1 -timeout=1h ./internal/agent
68 desc: Run with profiling enabled
75 desc: Install the application
77 LDFLAGS: '{{if .VERSION}}-ldflags="-X github.com/charmbracelet/crush/internal/version.Version={{.VERSION}}"{{end}}'
80 - go install {{.LDFLAGS}} -v .
85 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/profile?seconds=10'
90 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/heap'
93 desc: Allocations profile
95 - go tool pprof -http :6061 'http://localhost:6060/debug/pprof/allocs'
98 desc: Generate JSON schema for configuration
100 - go run main.go schema > schema.json
101 - echo "Generated schema.json"
106 desc: Update Hyper embedded provider.json
108 - go generate ./internal/agent/hyper/...
110 - ./internal/agent/hyper/provider.json
113 desc: Create and push a new tag following semver
116 sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
117 prompt: "This will release {{.NEXT}}. Continue?"
119 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
120 msg: Not on main branch
121 - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
125 - git commit --allow-empty -m "{{.NEXT}}"
126 - git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}
127 - echo "Pushing {{.NEXT}}..."
128 - git push origin main --follow-tags
132 - git tag -d nightly || true
136 desc: Update Fantasy and Catwalk
138 - go get charm.land/fantasy
139 - go get github.com/charmbracelet/catwalk
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list