File: commandutil.go

package info (click to toggle)
golang-k8s-sigs-kustomize-kyaml 0.20.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,180 kB
  • sloc: makefile: 220; sh: 68
file content (17 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0

package commandutil

import (
	"os"
)

// EnabkeAlphaCommmandsEnvName is the environment variable used to enable Alpha kustomize commands.
// If set to "true" alpha commands will be enabled.
const EnableAlphaCommmandsEnvName = "KUSTOMIZE_ENABLE_ALPHA_COMMANDS"

// GetAlphaEnabled returns true if alpha commands should be enabled.
func GetAlphaEnabled() bool {
	return os.Getenv(EnableAlphaCommmandsEnvName) == "true"
}