github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/command/v2/update_buildpack_command.go (about) 1 package v2 2 3 import ( 4 "os" 5 6 "github.com/liamawhite/cli-with-i18n/cf/cmd" 7 "github.com/liamawhite/cli-with-i18n/command" 8 "github.com/liamawhite/cli-with-i18n/command/flag" 9 ) 10 11 type UpdateBuildpackCommand struct { 12 RequiredArgs flag.BuildpackName `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 flag.PathWithExistenceCheckOrURL `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 command.Config, ui command.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 }