INNER CODE UNIT · Go

printUsage

mkubaczyk/helmsman · internal/app/cli.go:107

func printUsage() {
	fmt.Print(banner)
	fmt.Println("Helmsman version: " + appVersion)
	fmt.Println("Helmsman is a Helm Charts as Code tool which allows you to automate the deployment/management of your Helm charts.")
	fmt.Println("")
	fmt.Printf("Usage: helmsman [options]\n")
	flag.PrintDefaults()
}

func (c *cli) setup() {
	// parsing command line flags
	flag.Var(&c.files, "f", "desired state file name(s), may be supplied more than once to merge state files")
	flag.Var(&c.envFiles, "e", "additional file(s) to load environment variables from, may be supplied more than once, it extends default .env file lookup, every next file takes precedence over previous ones in case of having the same environment variables defined")
	flag.Var(&c.target, "target", "limit execution to specific app.")
	flag.Var(&c.group, "group", "limit execution to specific group of apps.")
	flag.Var(&c.targetExcluded, "exclude-target", "exclude specific app from execution.")
	flag.Var(&c.groupExcluded, "exclude-group", "exclude specific group of apps from execution.")
	flag.IntVar(&c.diffContext, "diff-context", -1, "number of lines of context to show around changes in helm diff output")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…