documentation: cleanup cobra help, add environment and config information to README

This commit is contained in:
Brian Ketelsen
2017-12-05 17:46:20 +00:00
committed by Erik St. Martin
parent eab200124f
commit 899b07c1f4

12
root.go
View File

@@ -41,14 +41,12 @@ var taint string
// RootCmd represents the base command when called without any subcommands // RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{ var RootCmd = &cobra.Command{
Use: "virtual-kubelet", Use: "virtual-kubelet",
Short: "A brief description of your application", Short: "virtual-kubelet provides a virtual kubelet interface for your kubernetes cluster.",
Long: `A longer description that spans multiple lines and likely contains Long: `virtual-kubelet implements the Kubelet interface with a pluggable
examples and usage of using your application. For example: backend implementation allowing users to create kubernetes nodes without running the kubelet.
This allows users to schedule kubernetes workloads on nodes that aren't running Kubernetes.`,
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
fmt.Println(kubeConfig)
f, err := vkubelet.New(nodeName, operatingSystem, kubeNamespace, kubeConfig, taint, provider, providerConfig) f, err := vkubelet.New(nodeName, operatingSystem, kubeNamespace, kubeConfig, taint, provider, providerConfig)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)