github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/command/v2/update_buildpack_command.go (about)

     1  package v2
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/command"
     5  	"code.cloudfoundry.org/cli/command/flag"
     6  	"code.cloudfoundry.org/cli/command/translatableerror"
     7  )
     8  
     9  type UpdateBuildpackCommand struct {
    10  	RequiredArgs    flag.BuildpackName               `positional-args:"yes"`
    11  	Disable         bool                             `long:"disable" description:"Disable the buildpack from being used for staging"`
    12  	Enable          bool                             `long:"enable" description:"Enable the buildpack to be used for staging"`
    13  	Order           int                              `short:"i" description:"The order in which the buildpacks are checked during buildpack auto-detection"`
    14  	Lock            bool                             `long:"lock" description:"Lock the buildpack to prevent updates"`
    15  	Path            flag.PathWithExistenceCheckOrURL `short:"p" description:"Path to directory or zip file"`
    16  	Unlock          bool                             `long:"unlock" description:"Unlock the buildpack to enable updates"`
    17  	Stack           string                           `short:"s" description:"Specify stack to disambiguate buildpacks with the same name"`
    18  	usage           interface{}                      `usage:"CF_NAME update-buildpack BUILDPACK [-p PATH] [-i POSITION] [-s STACK] [--enable|--disable] [--lock|--unlock]\n\nTIP:\n   Path should be a zip file, a url to a zip file, or a local directory. Position is a positive integer, sets priority, and is sorted from lowest to highest."`
    19  	relatedCommands interface{}                      `related_commands:"buildpacks, rename-buildpack"`
    20  }
    21  
    22  func (UpdateBuildpackCommand) Setup(config command.Config, ui command.UI) error {
    23  	return nil
    24  }
    25  
    26  func (UpdateBuildpackCommand) Execute(args []string) error {
    27  	return translatableerror.UnrefactoredCommandError{}
    28  }