INNER CODE UNIT · Go
func
mkubaczyk/helmsman · internal/app/cli.go:116
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")
flag.IntVar(&c.parallel, "p", 1, "max number of concurrent helm releases to run")
flag.StringVar(&c.spec, "spec", "", "specification file name, contains locations of desired state files to be merged")
flag.StringVar(&c.kubeconfig, "kubeconfig", "", "path to the kubeconfig file to use for CLI requests")
flag.StringVar(&c.nsOverride, "ns-override", "", "override defined namespaces with this one")
flag.StringVar(&c.contextOverride, "context-override", "", "override releases context defined in release state with this one")
flag.BoolVar(&c.apply, "apply", false, "apply the plan directly")
flag.BoolVar(&c.dryRun, "dry-run", false, "apply the dry-run option for helm commands.")
flag.BoolVar(&c.destroy, "destroy", false, "delete all deployed releases.")
flag.BoolVar(&c.version, "v", false, "show the version")