From 2df316aba4520e11f8d9ac6ac4483aae2d41d525 Mon Sep 17 00:00:00 2001 From: Jingwen Owen Ou Date: Fri, 31 May 2013 07:21:45 -0700 Subject: [PATCH] Add gh browse stub --- commands/browse.go | 16 ++++++++++++++++ commands/commands.go | 1 + 2 files changed, 17 insertions(+) create mode 100644 commands/browse.go diff --git a/commands/browse.go b/commands/browse.go new file mode 100644 index 00000000..39009d9f --- /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 95ec06d5..4a9d9c61 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, } -- GitLab