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

Function databaseFlag

cmd/flags.go:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27)
28
29func databaseFlag() *cli.StringFlag {
30 if os.Getenv("SCALINGO_PREVIEW_FEATURES") == "true" {
31 return &cli.StringFlag{
32 Name: "database",
33 Value: "<database_name>",
34 Usage: "ID of the current database",
35 }
36 }
37 return &cli.StringFlag{}
38}
39
40func databaseNameFromFlags(c *cli.Command) string {
41 for _, cliContext := range c.Lineage() {

Callers 10

logs.goFile · 0.85
env.goFile · 0.85
databases.goFile · 0.85
timeline.goFile · 0.85
logs_archives.goFile · 0.85
databases_ng.goFile · 0.85
firewall_rules.goFile · 0.85
collaborators.goFile · 0.85
log_drains.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected