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

Function StacksSetAutoComplete

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

Source from the content-addressed store, hash-verified

9)
10
11func StacksSetAutoComplete(ctx context.Context) error {
12 client, err := config.ScalingoClient(ctx)
13 if err != nil {
14 return errors.Wrapf(ctx, err, "fail to get Scalingo client")
15 }
16
17 stacks, err := client.StacksList(ctx)
18 if err != nil {
19 return nil
20 }
21
22 for _, stack := range stacks {
23 fmt.Println(stack.ID)
24 fmt.Println(stack.Name)
25 }
26
27 return nil
28}

Callers 1

stacks.goFile · 0.92

Calls 1

ScalingoClientFunction · 0.92

Tested by

no test coverage detected