Move cmd to ./cmd/signald-cli

cobra is trying to encourage an annoying file layout
This commit is contained in:
Finn 2018-10-08 18:03:28 -07:00
parent 5f11410cf8
commit eb6a7e71c3
6 changed files with 9 additions and 10 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
signald-cli/signald-cli
/signald-cli
# Binaries for programs and plugins
*.exe

View file

@ -21,8 +21,7 @@ build:
- cd /go/src/git.callpipe.com/finn/signald-go
script:
- go get ./... # TODO: Improve how dependencies are handled
- cd signald-cli
- go build -o "${CI_PROJECT_DIR}/signald-cli" .
- go build -o "${CI_PROJECT_DIR}/signald-cli" ./cmd/signald-cli
artifacts:
paths:
- signald-cli

7
cmd/signald-cli/main.go Normal file
View file

@ -0,0 +1,7 @@
package main
import "git.callpipe.com/finn/signald-go/cmd/signald-cli/cmd"
func main() {
cmd.Execute()
}

View file

@ -1,7 +0,0 @@
package main
import "git.callpipe.com/finn/signald-go/signald-cli/cmd"
func main() {
cmd.Execute()
}