Skip to content

Commit

Permalink
Revert "Add a sub command in docker - container (#25)" (#26)
Browse files Browse the repository at this point in the history
This reverts commit 9c208a2.
  • Loading branch information
Pradumnasaraf authored Jul 13, 2023
1 parent 9c208a2 commit 872a4b8
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 425 deletions.
23 changes: 0 additions & 23 deletions cmd/docker/container/container.go

This file was deleted.

108 changes: 0 additions & 108 deletions cmd/docker/container/delete.go

This file was deleted.

27 changes: 0 additions & 27 deletions cmd/docker/container/helper.go

This file was deleted.

72 changes: 0 additions & 72 deletions cmd/docker/container/rename.go

This file was deleted.

119 changes: 0 additions & 119 deletions cmd/docker/container/stop.go

This file was deleted.

2 changes: 2 additions & 0 deletions cmd/docker/docker-file.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func createDockerfile(lang string) {
}

func init() {
DockerCmd.AddCommand(dockerfileCmd)

dockerfileCmd.Flags().StringVarP(&language, "lang", "l", "", "Programming language to generate Dockerfile for.")
err := dockerfileCmd.MarkFlagRequired("lang")
checkNilErr(err)
Expand Down
6 changes: 0 additions & 6 deletions cmd/docker/docker.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package docker

import (
"github.com/Pradumnasaraf/candy/cmd/docker/container"
"github.com/spf13/cobra"
)

Expand All @@ -14,8 +13,3 @@ var DockerCmd = &cobra.Command{
checkNilErr(err)
},
}

func init() {
DockerCmd.AddCommand(container.ContainerCmd)
DockerCmd.AddCommand(dockerfileCmd)
}
2 changes: 2 additions & 0 deletions cmd/kubernetes/kubernetes-manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func createManifestFile(filename string, obj string) {
}

func init() {
KubernetesCmd.AddCommand(kubernetesManifestCmd)

kubernetesManifestCmd.Flags().StringVarP(&k8Obj, "obj", "o", "", "Kubernetes object to generate manifest for.")
err := kubernetesManifestCmd.MarkFlagRequired("obj")
checkNilErr(err)
Expand Down
4 changes: 0 additions & 4 deletions cmd/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ var KubernetesCmd = &cobra.Command{
checkNilErr(err)
},
}

func init() {
KubernetesCmd.AddCommand(kubernetesManifestCmd)
}
Loading

0 comments on commit 872a4b8

Please sign in to comment.