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

Function ProjectsGenericListAutoComplete

cmd/autocomplete/projects_list.go:11–24  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

9)
10
11func ProjectsGenericListAutoComplete(ctx context.Context) error {
12 client, err := config.ScalingoClient(ctx)
13 if err != nil {
14 return errors.Wrap(ctx, err, "get Scalingo client")
15 }
16 projects, err := client.ProjectsList(ctx)
17 if err == nil {
18 for _, proj := range projects {
19 fmt.Println(proj.ID)
20 }
21 }
22
23 return nil
24}

Callers 2

projects.goFile · 0.92
apps.goFile · 0.92

Calls 1

ScalingoClientFunction · 0.92

Tested by

no test coverage detected