Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion command/flag/app_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import flags "github.com/jessevdk/go-flags"
type AppType string

func (AppType) Complete(prefix string) []flags.Completion {
return completions([]string{"buildpack", "docker"}, prefix, false)
return completions([]string{"buildpack", "docker", "cnb"}, prefix, false)
}
6 changes: 4 additions & 2 deletions command/flag/app_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ var _ = Describe("AppType", func() {

Entry("completes to 'buildpack' when passed 'b'", "b",
[]flags.Completion{{Item: "buildpack"}}),
Entry("completes to 'cnb' when passed 'c'", "c",
[]flags.Completion{{Item: "cnb"}}),
Entry("completes to 'docker' when passed 'd'", "d",
[]flags.Completion{{Item: "docker"}}),
Entry("completes to 'buildpack' when passed 'bU'", "bU",
[]flags.Completion{{Item: "buildpack"}}),
Entry("completes to 'docker' when passed 'Do'", "Do",
[]flags.Completion{{Item: "docker"}}),
Entry("returns 'buildpack' and 'docker' when passed nothing", "",
[]flags.Completion{{Item: "buildpack"}, {Item: "docker"}}),
Entry("returns 'buildpack', 'cnb', and 'docker' when passed nothing", "",
[]flags.Completion{{Item: "buildpack"}, {Item: "docker"}, {Item: "cnb"}}),
Entry("completes to nothing when passed 'wut'", "wut",
[]flags.Completion{}),
)
Expand Down
Loading