We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea11c1 commit 8f1fa18Copy full SHA for 8f1fa18
command/flag/app_type.go
@@ -5,5 +5,5 @@ import flags "github.com/jessevdk/go-flags"
5
type AppType string
6
7
func (AppType) Complete(prefix string) []flags.Completion {
8
- return completions([]string{"buildpack", "docker"}, prefix, false)
+ return completions([]string{"buildpack", "docker", "cnb"}, prefix, false)
9
}
command/flag/app_type_test.go
@@ -19,14 +19,16 @@ var _ = Describe("AppType", func() {
19
20
Entry("completes to 'buildpack' when passed 'b'", "b",
21
[]flags.Completion{{Item: "buildpack"}}),
22
+ Entry("completes to 'cnb' when passed 'c'", "c",
23
+ []flags.Completion{{Item: "cnb"}}),
24
Entry("completes to 'docker' when passed 'd'", "d",
25
[]flags.Completion{{Item: "docker"}}),
26
Entry("completes to 'buildpack' when passed 'bU'", "bU",
27
28
Entry("completes to 'docker' when passed 'Do'", "Do",
29
- Entry("returns 'buildpack' and 'docker' when passed nothing", "",
- []flags.Completion{{Item: "buildpack"}, {Item: "docker"}}),
30
+ Entry("returns 'buildpack', 'cnb', and 'docker' when passed nothing", "",
31
+ []flags.Completion{{Item: "buildpack"}, {Item: "docker"}, {Item: "cnb"}}),
32
Entry("completes to nothing when passed 'wut'", "wut",
33
[]flags.Completion{}),
34
)
0 commit comments