aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/header.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose/header.go')
-rw-r--r--commands/compose/header.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/compose/header.go b/commands/compose/header.go
index aaa14e43..afc27e92 100644
--- a/commands/compose/header.go
+++ b/commands/compose/header.go
@@ -11,7 +11,7 @@ import (
type Header struct {
Force bool `opt:"-f"`
Remove bool `opt:"-d"`
- Name string `opt:"name"`
+ Name string `opt:"name" complete:"CompleteHeaders"`
Value string `opt:"..." required:"false"`
}
@@ -37,8 +37,8 @@ func (Header) Options() string {
return "fd"
}
-func (Header) Complete(args []string) []string {
- return commands.CompletionFromList(headers, args)
+func (*Header) CompleteHeaders(arg string) []string {
+ return commands.CompletionFromList(headers, arg)
}
func (h Header) Execute(args []string) error {