MCPcopy Create free account
hub / github.com/Scalingo/cli / FlagRemoteAutoComplete

Function FlagRemoteAutoComplete

cmd/autocomplete/flag_remote.go:10–20  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

8)
9
10func FlagRemoteAutoComplete(ctx context.Context) bool {
11 if dir, ok := utils.DetectGit(); ok {
12 remoteNames := utils.ScalingoRepoAutoComplete(ctx, dir)
13 for _, name := range remoteNames {
14 fmt.Println(name)
15 }
16 } else {
17 return false
18 }
19 return true
20}

Callers 2

ScalingoAppCompleteFunction · 0.92
FlagsAutoCompleteFunction · 0.85

Calls 2

DetectGitFunction · 0.92
ScalingoRepoAutoCompleteFunction · 0.92

Tested by

no test coverage detected