diff --git a/cli/gcp.go b/cli/gcp.go index 820708e..8fe24b2 100644 --- a/cli/gcp.go +++ b/cli/gcp.go @@ -34,6 +34,7 @@ func newGCPCmd() cli.Command { newGCPSQLCmd(), newGCPPubSubCmd(), newGCPStorageCmd(), + newGCPDataflowCmd(), }, } } @@ -351,3 +352,23 @@ func newGCPStorageCmd() cli.Command { }, } } + +func newGCPDataflowCmd() cli.Command { + return cli.Command{ + Name: "dataflow", + Usage: "Open Cloud Dataflow page", + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "project", + Usage: "Specify the project to open", + }, + }, + Action: func(c *cli.Context) error { + gcp, err := gcp.GetProvider() + if err != nil { + return err + } + return browser.Open(c, gcp) + }, + } +}