()
| 27 | ) |
| 28 | |
| 29 | func 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 | |
| 40 | func databaseNameFromFlags(c *cli.Command) string { |
| 41 | for _, cliContext := range c.Lineage() { |
no outgoing calls
no test coverage detected