Compare commits

...

2 Commits

Author SHA1 Message Date
cb9d8e194f
Add .woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-06 10:18:33 -05:00
f3145d8c1d
Fix test name typo 2022-09-06 08:35:44 -05:00
2 changed files with 11 additions and 1 deletions

10
.woodpecker.yml Normal file
View File

@ -0,0 +1,10 @@
---
pipeline:
lint:
image: golangci/golangci-lint
commands:
- golangci-lint run
build:
image: golang
commands:
- go build ./cmd/bb

View File

@ -99,7 +99,7 @@ func ContainsCommand(s, prefix, cmd string) bool {
return false return false
} }
func SplitCommandAndArgs(s, prefix string) (cmd string, args []string) { func SplitCommandAndArg(s, prefix string) (cmd string, args []string) {
s = strings.TrimSpace(s) s = strings.TrimSpace(s)
if !strings.HasPrefix(s, prefix) { if !strings.HasPrefix(s, prefix) {