github.com/buildpacks/pack@v0.33.3-0.20240516162812-884dd1837311/internal/commands/extension_yank.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 type ExtensionYankFlags struct { 11 ExtensionRegistry string 12 Undo bool 13 } 14 15 func ExtensionYank(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command { 16 cmd := &cobra.Command{ 17 Use: "yank <extension-id-and-version>", 18 Args: cobra.ExactArgs(1), 19 Short: "Yank an extension from a registry", 20 Example: "pack yank <extension-example>", 21 RunE: logError(logger, func(cmd *cobra.Command, args []string) error { 22 // logic will be added here 23 return nil 24 }), 25 } 26 // flags will be added here 27 AddHelpFlag(cmd, "yank") 28 29 return cmd 30 }