Commit graph

65 commits

Author SHA1 Message Date
vilmibm
256bdabf03 slight refactor
I didn't initially use GitHubRepo because it had the weird error
wrapping. I poked around and I think this function is leftover from a
vestigial GitHubRepoID function that used to be more single-purpose. I
took out the weird error handling so it could be reused and then used it
from the new GitHubRepoExists.
2020-02-26 16:48:29 -06:00
Mislav Marohnić
4a56280ab5 Automatically add origin remote after repo create 2020-02-26 19:53:01 +01:00
vilmibm
e38c15e2c9 fix ellipsis color 2020-02-26 11:56:00 -06:00
vilmibm
6371864835 spruce up UX 2020-02-26 11:48:11 -06:00
Mislav Marohnić
b02dac8f0b Accept more repo fields via flags to repo create 2020-02-26 18:45:21 +01:00
vilmibm
8a3337ca66 switch default to Y 2020-02-25 16:26:51 -06:00
vilmibm
4f25d06c1e add repo fork tests 2020-02-25 16:26:51 -06:00
vilmibm
6eaab2562f add repo fork command 2020-02-25 16:26:51 -06:00
Mislav Marohnić
9175fc06d4 Add preliminary repo create command 2020-02-25 18:04:55 +01:00
Mislav Marohnić
d25ec726ad Add repo clone <repo> command 2020-02-25 16:47:42 +01:00
vilmibm
1bf8beb96d fix baseRepo type 2020-02-24 13:22:43 -06:00
Mislav Marohnić
e87467d21f Allow repo view OWNER/REPO format for owners starting with "http" 2020-02-24 17:17:14 +01:00
Mislav Marohnić
398a5defb8 Use displayURL helper for consistency 2020-02-24 17:17:00 +01:00
Mislav Marohnić
20fc0dfcb7 Avoid API requests in repo view when repo argument is given 2020-02-24 17:14:46 +01:00
Scott Penrose
7c76fb645a
Add repo view command
```
$ gh repo
Work with GitHub repositories.

A repository can be supplied as an argument in any of the following formats:
- by owner/repo, e.g. "cli/cli"
- by URL, e.g. "https://github.com/cli/cli"

Usage:
  gh repo [command]

Available Commands:
  view        View a repository in the browser
```
2020-02-18 21:25:31 -05:00