github.com/elopio/cli@v6.21.2-0.20160902224010-ea909d1fdb2f+incompatible/commands/v2/update_buildpack_command.go (about) 1 package v2 2 3 import ( 4 "os" 5 6 "code.cloudfoundry.org/cli/cf/cmd" 7 "code.cloudfoundry.org/cli/commands" 8 "code.cloudfoundry.org/cli/commands/flags" 9 ) 10 11 type UpdateBuildpackCommand struct { 12 RequiredArgs flags.Buildpack `positional-args:"yes"` 13 Disable bool `long:"disable" description:"Disable the buildpack from being used for staging"` 14 Enable bool `long:"enable" description:"Enable the buildpack to be used for staging"` 15 Order int `short:"i" description:"The order in which the buildpacks are checked during buildpack auto-detection"` 16 Lock bool `long:"lock" description:"Lock the buildpack to prevent updates"` 17 Path int `short:"p" description:"Path to directory or zip file"` 18 Unlock bool `long:"unlock" description:"Unlock the buildpack to enable updates"` 19 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."` 20 relatedCommands interface{} `related_commands:"buildpacks, rename-buildpack"` 21 } 22 23 func (_ UpdateBuildpackCommand) Setup(config commands.Config, ui commands.UI) error { 24 return nil 25 } 26 27 func (_ UpdateBuildpackCommand) Execute(args []string) error { 28 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 29 return nil 30 }