Compare commits
No commits in common. "cb9d8e194faf233463c5345320623bf9d2a53518" and "4c5849daae8b0c689438f2eff48c2557cf5282e3" have entirely different histories.
cb9d8e194f
...
4c5849daae
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
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 SplitCommandAndArg(s, prefix string) (cmd string, args []string) {
|
func SplitCommandAndArgs(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