Debian Codegraph @

cmd/config/configcobra/fn.go

raw symbols SCIP
1 // Copyright 2019 The Kubernetes Authors.
2 // SPDX-License-Identifier: Apache-2.0
3
4 package configcobra
5
6 import (
7 "github.com/spf13/cobra"
8 "sigs.k8s.io/kustomize/cmd/config/internal/commands"
9 )
10
11 func GetFn(name string) *cobra.Command {
12 cmd := &cobra.Command{
13 Use: "fn",
14 Short: "Commands for running functions against configuration",
15 }
16
17 cmd.AddCommand(commands.RunCommand(name))
18 return cmd
19 }