Compare commits
3 Commits
4c5849daae
...
4068a4ff06
Author | SHA1 | Date | |
---|---|---|---|
4068a4ff06 | |||
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
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user