Compare commits
2 Commits
4c5849daae
...
cb9d8e194f
Author | SHA1 | Date | |
---|---|---|---|
cb9d8e194f | |||
f3145d8c1d |
10
.woodpecker.yml
Normal file
10
.woodpecker.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
pipeline:
|
||||
lint:
|
||||
image: golangci/golangci-lint
|
||||
commands:
|
||||
- golangci-lint run
|
||||
build:
|
||||
image: golang
|
||||
commands:
|
||||
- go build ./cmd/bb
|
@ -99,7 +99,7 @@ func ContainsCommand(s, prefix, cmd string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func SplitCommandAndArgs(s, prefix string) (cmd string, args []string) {
|
||||
func SplitCommandAndArg(s, prefix string) (cmd string, args []string) {
|
||||
s = strings.TrimSpace(s)
|
||||
|
||||
if !strings.HasPrefix(s, prefix) {
|
||||
|
Loading…
Reference in New Issue
Block a user