Files
kustomize/cmd/config/configcobra/cfg.go
Natasha Sarkar ef60d5f9bb remove deprecated cfg and fn commands (#4930)
* remove deprecated cfg and fn commands

* fix lint error

* run gofmt
2022-12-14 12:15:35 -08:00

24 lines
531 B
Go

// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package configcobra
import (
"github.com/spf13/cobra"
"sigs.k8s.io/kustomize/cmd/config/internal/commands"
)
func GetCfg(name string) *cobra.Command {
cmd := &cobra.Command{
Use: "cfg",
Short: "Commands for reading and writing configuration",
}
cmd.AddCommand(commands.CatCommand(name))
cmd.AddCommand(commands.CountCommand(name))
cmd.AddCommand(commands.GrepCommand(name))
cmd.AddCommand(commands.TreeCommand(name))
return cmd
}