From ce1185faa8375eadb429882d57c5d400e180e01c Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Mon, 11 Apr 2016 16:25:39 -0600 Subject: [PATCH] feat(helm): add initial helm client --- cmd/helm/helm.go | 19 +++++++++++++++++++ cmd/helm/init.go | 22 ++++++++++++++++++++++ glide.lock | 10 ++++++++-- glide.yaml | 3 +++ 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 cmd/helm/helm.go create mode 100644 cmd/helm/init.go diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go new file mode 100644 index 000000000..785dac967 --- /dev/null +++ b/cmd/helm/helm.go @@ -0,0 +1,19 @@ +package main + +import ( + "os" + + "github.com/spf13/cobra" +) + +var stdout = os.Stdout + +var RootCommand = &cobra.Command{ + Use: "helm", + Short: "The Helm package manager for Kubernetes.", + Long: `Do long help here.`, +} + +func main() { + RootCommand.Execute() +} diff --git a/cmd/helm/init.go b/cmd/helm/init.go new file mode 100644 index 000000000..5679de8e2 --- /dev/null +++ b/cmd/helm/init.go @@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + + "github.com/spf13/cobra" +) + +func init() { + RootCommand.AddCommand(initCmd) +} + +var initCmd = &cobra.Command{ + Use: "init", + Short: "Initialize Helm on both client and server.", + Long: `Add long help here`, + Run: runInit, +} + +func runInit(cmd *cobra.Command, args []string) { + fmt.Fprintln(stdout, "Init was called.") +} diff --git a/glide.lock b/glide.lock index 915c93e3b..2a820a40d 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: 9bf35c0cd5fd9a87324b8b410499579fd983072338d8b6522987b630353bf986 -updated: 2016-04-11T15:22:12.013812164-06:00 +hash: 692bf17990973cf424c2dbfda6afee8b7002bbc07aaaa78372eac447fed4c8b0 +updated: 2016-04-11T16:13:14.192550144-06:00 imports: - name: github.com/codegangsta/cli version: 71f57d300dd6a780ac1856c005c4b518cfd498ec @@ -7,6 +7,12 @@ imports: version: dda510ac0fd43b39770f22ac6260eb91d377bce3 subpackages: - proto +- name: github.com/spf13/cobra + version: 4c05eb1145f16d0e6bb4a3e1b6d769f4713cb41f + subpackages: + - cobra +- name: github.com/spf13/pflag + version: 1f296710f879815ad9e6d39d947c828c3e4b4c3d - name: golang.org/x/net version: 589fda73dd0faec3dc59e7d7dab5b069e3fce0f9 subpackages: diff --git a/glide.yaml b/glide.yaml index 29d5af970..bb9ca005c 100644 --- a/glide.yaml +++ b/glide.yaml @@ -4,3 +4,6 @@ import: - package: golang.org/x/net subpackages: - context +- package: github.com/spf13/cobra + subpackages: + - cobra