github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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  	usage           interface{}                      `usage:"CF_NAME update-buildpack BUILDPACK [-p PATH] [-i POSITION] [--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."`
    18  	relatedCommands interface{}                      `related_commands:"buildpacks, rename-buildpack"`
    19  }
    20  
    21  func (UpdateBuildpackCommand) Setup(config command.Config, ui command.UI) error {
    22  	return nil
    23  }
    24  
    25  func (UpdateBuildpackCommand) Execute(args []string) error {
    26  	return translatableerror.UnrefactoredCommandError{}
    27  }