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

Function GetCurrentResource

detect/app.go:89–92  ·  view source on GitHub ↗

GetCurrentResource is the new helper to get the current resource (app or database).

(ctx context.Context, c *cli.Command)

Source from the content-addressed store, hash-verified

87
88// GetCurrentResource is the new helper to get the current resource (app or database).
89func 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.

Callers 11

logs.goFile · 0.92
env.goFile · 0.92
databases.goFile · 0.92
rename.goFile · 0.92
timeline.goFile · 0.92
logs_archives.goFile · 0.92
db_tunnel.goFile · 0.92
apps.goFile · 0.92
one_off_stop.goFile · 0.92
run.goFile · 0.92
collaborators.goFile · 0.92

Calls 1

Tested by

no test coverage detected