Skip to content

Commit

Permalink
🍉 add dataflow implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
KeisukeYamashita committed Oct 6, 2019
1 parent 87e3431 commit a0d7ae5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cli/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func newGCPCmd() cli.Command {
newGCPSQLCmd(),
newGCPPubSubCmd(),
newGCPStorageCmd(),
newGCPDataflowCmd(),
},
}
}
Expand Down Expand Up @@ -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)
},
}
}

0 comments on commit a0d7ae5

Please sign in to comment.