diff --git a/commands/browse.go b/commands/browse.go new file mode 100644 index 0000000000000000000000000000000000000000..39009d9f01d747b6e424760b4489986bbe26fbe4 --- /dev/null +++ b/commands/browse.go @@ -0,0 +1,16 @@ +package commands + +var cmdBrowse = &Command{ + Run: browse, + Usage: "browse [-u [USER/]REPOSITORY] [-p SUBPAGE]", + Short: "Open a GitHub page in the default browser", + Long: `Open repository's GitHub page in the system's default web browser using +open(1) or the BROWSER env variable. If the repository isn't specified, +browse opens the page of the repository found in the current directory. +If SUBPAGE is specified, the browser will open on the specified subpage: +one of "wiki", "commits", "issues" or other (the default is "tree"). +`, +} + +func browse(cmd *Command, args []string) { +} diff --git a/commands/commands.go b/commands/commands.go index 95ec06d5896718cb8cc149a82376c8ad642aaf36..4a9d9c61a232fb7279e2907e7ba87ec6eb3506d0 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -42,6 +42,7 @@ func (c *Command) List() bool { var All = []*Command{ cmdPullRequest, cmdCiStatus, + cmdBrowse, cmdHelp, cmdVersion, }