Debian Codegraph @

cmd/config/kubectl-krm/main.go

raw symbols SCIP
1 // Copyright 2019 The Kubernetes Authors.
2 // SPDX-License-Identifier: Apache-2.0
3
4 package main
5
6 import (
7 "os"
8
9 "github.com/spf13/cobra"
10
11 "sigs.k8s.io/kustomize/cmd/config/configcobra"
12 "sigs.k8s.io/kustomize/kyaml/commandutil"
13 )
14
15 func main() {
16 os.Setenv(commandutil.EnableAlphaCommmandsEnvName, "true")
17 cmd := configcobra.AddCommands(&cobra.Command{
18 Use: "kubectl-krm",
19 Short: "Plugin for configuration based commands.",
20 Long: `Plugin for configuration based commands.
21
22 Provides commands for working with Kubernetes resource configuration.
23 `,
24 }, "")
25 if err := cmd.Execute(); err != nil {
26 os.Exit(1)
27 }
28 }