INNER CODE UNIT · Go
GetKptCommands
kptdev/kpt · commands/commands.go:37
func GetKptCommands(ctx context.Context, name, version string) []*cobra.Command {
var c []*cobra.Command
fnCmd := fn.GetCommand(ctx, name)
pkgCmd := pkg.GetCommand(ctx, name)
liveCmd := live.GetCommand(ctx, name, version)
alphaCmd := alpha.GetCommand(ctx, name, version)
c = append(c, pkgCmd, fnCmd, liveCmd, alphaCmd)
// apply cross-cutting issues to commands
NormalizeCommand(c...)
return c
}