Files
kustomize/cmd/config/main.go
Phillip Wittrock 6484259632 Disable alpha kustomize commands by default.
- enable alpha commands with env KUSTOMIZE_SHOW_ALPHA_COMMANDS=true
2019-12-11 18:42:46 -08:00

23 lines
633 B
Go

// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
//go:generate $GOBIN/mdtogo docs/api-conventions cmddocs/api --full=true --license=none
//go:generate $GOBIN/mdtogo docs/tutorials cmddocs/tutorials --full=true --license=none
//go:generate $GOBIN/mdtogo docs/commands cmddocs/commands --license=none
package main
import (
"os"
"sigs.k8s.io/kustomize/cmd/config/cmds"
"sigs.k8s.io/kustomize/kyaml/commandutil"
)
func main() {
// enable the config commands
os.Setenv(commandutil.EnableAlphaCommmandsEnvName, "true")
if err := cmds.NewConfigCommand("").Execute(); err != nil {
os.Exit(1)
}
}