github.com/buildpacks/pack@v0.33.3-0.20240516162812-884dd1837311/internal/commands/buildpack.go (about) 1 package commands 2 3 import ( 4 "github.com/spf13/cobra" 5 6 "github.com/buildpacks/pack/internal/config" 7 "github.com/buildpacks/pack/pkg/logging" 8 ) 9 10 func NewBuildpackCommand(logger logging.Logger, cfg config.Config, client PackClient, packageConfigReader PackageConfigReader) *cobra.Command { 11 cmd := &cobra.Command{ 12 Use: "buildpack", 13 Aliases: []string{"buildpacks"}, 14 Short: "Interact with buildpacks", 15 RunE: nil, 16 } 17 18 cmd.AddCommand(BuildpackInspect(logger, cfg, client)) 19 cmd.AddCommand(BuildpackPackage(logger, cfg, client, packageConfigReader)) 20 cmd.AddCommand(BuildpackNew(logger, client)) 21 cmd.AddCommand(BuildpackPull(logger, cfg, client)) 22 cmd.AddCommand(BuildpackRegister(logger, cfg, client)) 23 cmd.AddCommand(BuildpackYank(logger, cfg, client)) 24 25 AddHelpFlag(cmd, "buildpack") 26 return cmd 27 }