chore: move main.go to cmd/spruce

In preparation for additional binaries that may or may
not appear.
This commit is contained in:
Dan Anglin 2023-08-16 23:33:28 +01:00
parent 93da4f6648
commit d0d03f48b7
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View file

@ -44,4 +44,4 @@ tags
cv.pdf
cv.json
spruce
/spruce

View file

@ -22,7 +22,7 @@ var (
// Build builds the binary.
func Build() error {
flags := ldflags()
return sh.Run("go", "build", "-ldflags="+flags, "-a", "-o", binary, ".")
return sh.Run("go", "build", "-ldflags="+flags, "-a", "-o", binary, "./cmd/spruce")
}
// Install installs the binary to the execution path.