You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/cmd/helm/home.go

26 lines
443 B

package main
import (
"github.com/spf13/cobra"
)
var longHomeHelp = `
This command displays the location of HELM_HOME. This is where
any helm configuration files live.
`
var homeCommand = &cobra.Command{
Use: "home",
Short: "Displays the location of HELM_HOME",
Long: longHomeHelp,
Run: home,
}
func init() {
RootCommand.AddCommand(homeCommand)
}
func home(cmd *cobra.Command, args []string) {
cmd.Printf(homePath() + "\n")
}