| 16 | ) |
| 17 | |
| 18 | type CreateBuildpackCommand struct { |
| 19 | BaseCommand |
| 20 | |
| 21 | RequiredArgs flag.CreateBuildpackArgs `positional-args:"Yes"` |
| 22 | usage interface{} `usage:"CF_NAME create-buildpack BUILDPACK PATH POSITION [--disable] [--lifecycle buildpack|cnb]\n\nTIP:\n When using the 'buildpack' lifecycle type, Path should be a zip file, a url to a zip file, or a local directory. When using the 'cnb' lifecycle, Path should be a cnb file or gzipped oci image. Position is a positive integer, sets priority, and is sorted from lowest to highest."` |
| 23 | relatedCommands interface{} `related_commands:"buildpacks, push"` |
| 24 | Disable bool `long:"disable" description:"Disable the buildpack from being used for staging"` |
| 25 | Lifecycle string `long:"lifecycle" short:"l" description:"Lifecycle that the buildpack will use ('buildpack' or 'cnb')"` |
| 26 | |
| 27 | ProgressBar v7action.SimpleProgressBar |
| 28 | } |
| 29 | |
| 30 | func (cmd *CreateBuildpackCommand) Setup(config command.Config, ui command.UI) error { |
| 31 | cmd.ProgressBar = v7action.NewProgressBar() |
nothing calls this directly
no outgoing calls
no test coverage detected