MCPcopy
hub / github.com/cloudfoundry/cli / CreateBuildpackCommand

Struct CreateBuildpackCommand

command/v7/create_buildpack_command.go:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16)
17
18type 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
30func (cmd *CreateBuildpackCommand) Setup(config command.Config, ui command.UI) error {
31 cmd.ProgressBar = v7action.NewProgressBar()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected