Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 6914ba5

Browse files
committed
Move cmd and main.go to cmd/docker-app
Signed-off-by: Vincent Demeester <[email protected]>
1 parent 6d0c156 commit 6914ba5

22 files changed

+26
-27
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ check_go_env:
5656

5757
bin: check_go_env
5858
@echo "Building _build/$(BIN_NAME)$(EXEC_EXT)..."
59-
$(GO_BUILD) -ldflags=$(LDFLAGS) -o _build/$(BIN_NAME)$(EXEC_EXT)
59+
$(GO_BUILD) -ldflags=$(LDFLAGS) -o _build/$(BIN_NAME)$(EXEC_EXT) ./cmd/docker-app
6060

6161
bin-all: check_go_env
6262
@echo "Building for all platforms..."
63-
$(foreach OS, $(OS_LIST), GOOS=$(OS) $(GO_BUILD) -ldflags=$(LDFLAGS) -o _build/$(BIN_NAME)-$(OS)$(if $(filter windows, $(OS)),.exe,) || exit 1;)
63+
$(foreach OS, $(OS_LIST), GOOS=$(OS) $(GO_BUILD) -ldflags=$(LDFLAGS) -o _build/$(BIN_NAME)-$(OS)$(if $(filter windows, $(OS)),.exe,) ./cmd/docker-app || exit 1;)
6464

6565
e2e-all: check_go_env
6666
@echo "Building for all platforms..."

cmd/build.go renamed to cmd/docker-app/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"github.com/docker/lunchbox/internal"

cmd/deploy.go renamed to cmd/docker-app/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"fmt"

cmd/helm.go renamed to cmd/docker-app/helm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"github.com/docker/cli/cli"

cmd/image-add.go renamed to cmd/docker-app/image-add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"fmt"

cmd/image-load.go renamed to cmd/docker-app/image-load.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"github.com/docker/lunchbox/image"

cmd/init.go renamed to cmd/docker-app/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"github.com/docker/cli/cli"

cmd/inspect.go renamed to cmd/docker-app/inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"github.com/docker/cli/cli"

cmd/load.go renamed to cmd/docker-app/load.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmd
1+
package main
22

33
import (
44
"github.com/docker/cli/cli"

cmd/docker-app/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package main
2+
3+
func main() {
4+
Execute()
5+
}

0 commit comments

Comments
 (0)