(ctx context.Context)
| 9 | ) |
| 10 | |
| 11 | func 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 | } |
no test coverage detected