Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 5b4b22b

Browse files
committed
configure: enable completion
Signed-off-by: Dorin Geman <[email protected]>
1 parent 935b699 commit 5b4b22b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands/configure.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package commands
33
import (
44
"fmt"
55

6+
"github.com/docker/model-cli/commands/completion"
67
"github.com/docker/model-runner/pkg/inference/scheduling"
78
"github.com/spf13/cobra"
89
)
@@ -39,6 +40,7 @@ func newConfigureCmd() *cobra.Command {
3940
RunE: func(cmd *cobra.Command, args []string) error {
4041
return desktopClient.ConfigureBackend(opts)
4142
},
43+
ValidArgsFunction: completion.ModelNames(getDesktopClient, -1),
4244
}
4345

4446
c.Flags().Int64Var(&opts.ContextSize, "context-size", -1, "context size (in tokens)")

0 commit comments

Comments
 (0)