Move cmd to ./cmd/signald-cli
cobra is trying to encourage an annoying file layout
This commit is contained in:
parent
5f11410cf8
commit
eb6a7e71c3
6 changed files with 9 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
signald-cli/signald-cli
|
||||
/signald-cli
|
||||
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
|
|
|
@ -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
7
cmd/signald-cli/main.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "git.callpipe.com/finn/signald-go/cmd/signald-cli/cmd"
|
||||
|
||||
func main() {
|
||||
cmd.Execute()
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
package main
|
||||
|
||||
import "git.callpipe.com/finn/signald-go/signald-cli/cmd"
|
||||
|
||||
func main() {
|
||||
cmd.Execute()
|
||||
}
|
Loading…
Reference in a new issue