MCPcopy
hub / github.com/docker/compose / completeScaleArgs

Function completeScaleArgs

cmd/compose/completion.go:111–119  ·  view source on GitHub ↗
(cli command.Cli, p *ProjectOptions)

Source from the content-addressed store, hash-verified

109}
110
111func completeScaleArgs(cli command.Cli, p *ProjectOptions) cobra.CompletionFunc {
112 return func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
113 completions, directive := completeServiceNames(cli, p)(cmd, args, toComplete)
114 for i, completion := range completions {
115 completions[i] = completion + "="
116 }
117 return completions, directive
118 }
119}

Callers 1

scaleCommandFunction · 0.85

Calls 1

completeServiceNamesFunction · 0.85

Tested by

no test coverage detected