GetCurrentResource is the new helper to get the current resource (app or database).
(ctx context.Context, c *cli.Command)
| 87 | |
| 88 | // GetCurrentResource is the new helper to get the current resource (app or database). |
| 89 | func GetCurrentResource(ctx context.Context, c *cli.Command) string { |
| 90 | resource, _ := GetCurrentResourceAndDatabase(ctx, c) |
| 91 | return resource |
| 92 | } |
| 93 | |
| 94 | // GetCurrentResourceAndDatabase returns the current resource (app or database) |
| 95 | // and the current database UUID if any. |
no test coverage detected