mirror of https://github.com/helm/helm
commit
d081e39d17
@ -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()
|
||||
}
|
@ -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.")
|
||||
}
|
Loading…
Reference in new issue