17 ms·
GitHub CLI is now in beta
- xvilka 7y agoWith some extension even navigating issues can be done in cli through markdown viewer in console (I opened a suggestion[1] in Hub's repository). [1] https://github.com/github/hub/issues/2192 https://github.com/github/hub/issues/2192
- deleted 7y ago[deleted]
- geerlingguy 7y agoI've been using Hub[1] (though not aliased to `git`) for years now, and it's PR management capabilities have been invaluable working on larger projects. Hopefully GitHub CLI is as stable and reliable! It looks like the main features I use from Hub are already well-supported in the GitHub CLI, and it looks like whether or not Hub will still be maintained is an open question[2]. Edit: Just noting that `brew install github` doesn't work, it's actually `brew install github/gh/gh` — that's a new format for brew packages I haven't seen before. [1] https://github.com/github/hub https://github.com/github/hub [2] https://github.com/github/hub/issues/2470 https://github.com/github/hub/issues/2470
- douglasfshearer 7y agoThe main developer of this at Github wrote a blogpost about the design decisions behind CLI, and how it fits/replaces Hub. [0] [0] https://mislav.net/2020/01/github-cli/ https://mislav.net/2020/01/github-cli/
- deleted 7y ago[deleted]
- ekimekim 7y agoOne thing I really hope they keep from Hub is the way it creates pull requests, namely by opening $EDITOR and using the first line as the PR title and the rest as description, ie. exactly the same mechansim as git uses for "git commit". Needing to navigate a menu to set title and description as it seems to show in the screenshots seems like completely unnessecary friction.
- RandallBrown 7y agoI would be surprised if it didn't work that way. That's the way PRs work on their website too.
- earenndil 7y ago> first line as the PR title and the rest as description > exactly the same mechanism as git uses for "git commit" That's not how git commit works. git commit opens $EDITOR and makes a list of lines (sans commented-out lines) from that. The first line being a title is only convention, whereas in a github PR it's a formal element of the system.
- wtallis 7y agoIt's a bit more than just a convention, since `git log` has lots of formatting options that rely on that first line being the title/subject.
- CydeWeys 7y agoIt's not really just convention. Git commit messages map directly to emails for workflows that don't use web UIs like GitHub, with the first line being the subject and the rest being the email body. That's how you mail a commit to someone else for them to review it or incorporate it into their local repo. If you don't format your commit messages properly then they'll just be a sloppy mess in any email-based workflow (like what Linux uses). And the first line is the only line that's displayed in contexts like `git log`, so it truly is the commit summary even if you aren't emailing commits.
- 7y ago
- cweagans 7y agobrew install github/gh/gh is a shortcut for brew tap github/gh && brew install gh It has worked for several years now, but I'm not sure if it's documented anywhere.
- geerlingguy 7y agoAh, that makes sense. I've never seen that shortcut before, but the tap & brew pattern is more familiar.
- blackandblue 7y agoalso wondering what is going to happen to hub...
- rudiv 7y agoI use a similar tool for GitLab [1], I wonder if this will propel GitLab to maybe put some money and effort into officially supporting it. [1] https://github.com/zaquestion/lab https://github.com/zaquestion/lab
- OJFord 7y ago> Edit: Just noting that `brew install github` doesn't work, it's actually `brew install github/gh/gh` — that's a new format for brew packages I haven't seen before. It's not new, but what you've perhaps seen is more like `brew install OJFord/formulae/gh` - 'most' (I haven't surveyed, but in my experience) people call the repo `homebrew-formulae`, `homebrew-` gets stripped, leaving: > `<GH user>/<repo name less 'homebrew-'>/<formula name>`
- billygriffin22 7y agoHi! I'm on the team building GitHub CLI. We're definitely eager for your feedback on what things feel like they're missing, and especially if something is broken or doesn't feel stable or reliable. Feel free to open an issue if there's anything that stands out. The different homebrew installation you referred to is because `gh` isn't part of homebrew/core yet as it's very new. So we'll be adding it in the coming months, but for now that's just a way for us to maintain our own tap and still provide an easy install/upgrade path.
- pooper 7y agoCongratulations on shipping! Just installed it on fedora using dnf and tried my usual git commands using hub instead. So far so good. I haven't tried any hub specific features yet though. It is nice that I can just dnf install hub
- billygriffin22 7y agoThanks! I'm definitely curious what you think when you start venturing into creating and checking out PRs in particular, and how we're managing the `pr status` and `issue status` commands in terms of what's shown vs. what you expect or would like to see to get the most relevant context.
- deleted 7y ago[deleted]
- atombender 7y agoI use "hub browse" a lot. It's a really quick way to open a local directory's Github repo. Unfortunately, it's quite limited. No way to open a specific file, for example, or jump to a specific branch other than the current one. I'd love to have something like "gh open".
- billygriffin22 7y agoIt's on our roadmap! https://github.com/cli/cli/issues/217 https://github.com/cli/cli/issues/217
- jrochkind1 7y agoHuh, I'm confused that this announcement doesn't even mention the existing `hub` tool, which is also in the `github` organization... this is a new rewrite replacement for it? I agree the main thing I use `hub` for is PR management. Specifically creating PRs. It had seemed to me that hub was somewhat undermaintained lately, so I guess I'm glad they've released a new tool which appears to maybe cover the same things, which perhaps will be better maintained.... but confused that they are releasing a new tool which does the same thing as an already existing tool also from github...
- ad_hominem 7y agoHub was created by Chris Wanstrath, one of the original GitHub founders, so it's not surprising there's no reference to it. There's a damnatio memoriae of GitHub's founders and founding story because of certain subcultures that were fostered there by the people they chose to hire.
- pjc50 7y agoCould you elaborate, or at least spill the tea?
- jamie_ca 7y agoCirca 2014 there was a big blowup of allegations centering around then-CEO Tom Preston-Werner and his wife (not an employee, but worked at the office). Tom resigned as a result. I don't know why Wanstrath would be excised from collective history though - he was founding CEO (2008-2012) and stepped in again after Tom (2014-2017). Wikipedia says he's now a technical fellow at MS since the acquisition.
- nixpulvis 7y agoSo dumb, these are the people who literally created GitHub, show them the damn respect they deserve. `hub` (a tool I use to this day) is clearly the predecessor to this official CLI.
- 7y ago
- Spiritus 7y agoTry `brew install gh` instead, it's part of homebrew/core.
- stockkid 7y agoYeah, Hub is such a valuable tool for automating common tasks on GitHub such a releasing. Hopefully GitHub CLI will maintain a feature parity with Hub so that people can transition smoothly if needed.
- guessmyname 7y agoI am glad they used Go to develop this command line tool. Knowing how big GitHub is on Ruby and Node.js I was afraid they had used one of these two languages to bootstrap the program. Being able to drop the binary in any computer and have it work without hundreds of files as dependencies is a bless when you write programs in Go.
- coolreader18 7y agoHub[1], the previous Github CLI, was written in Go too, so I don't think this is much of a surprise. [1]: https://github.com/github/hub https://github.com/github/hub
- guessmyname 7y ago> Hub, the previous Github CLI, was written in Go too, so I don't think this is much of a surprise. Hub was originally a collection of Ruby scripts for ±3 years [1]. They later refactored the code to use Go: • Initial commit on Dec 5, 2009 was 100% Ruby code [2] • @jingweno started a refactoring using Go on Apr 8, 2013 [3][4] • The Go rewrite was merged to master on May 23, 2013 [5] [1] https://mislav.net/2020/01/github-cli/ https://mislav.net/2020/01/github-cli/ [2] https://github.com/github/hub/tree/de9bfa2103ee81a547d4fc598a91a3ec06536b0e https://github.com/github/hub/tree/de9bfa2103ee81a547d4fc598... [3] https://github.com/github/hub/commit/d5615fcb6f9c983fbf5d1297700a26531ddf1173 https://github.com/github/hub/commit/d5615fcb6f9c983fbf5d129... [4] https://owenou.com/fast-github-command-line-client-written-in-go/ https://owenou.com/fast-github-command-line-client-written-i... [5] https://github.com/github/hub/tree/0df403f14805d4962ee3adb228f5e52f06ccdfb9 https://github.com/github/hub/tree/0df403f14805d4962ee3adb22...
- fwip 7y ago"Was written," not "was initially written." Edit: I see you've edited your comment; I'm leaving this here as-is.
- ksec 7y ago>Node.js They use Node.js?
- anderspitman 7y agoEmbrace, extend, extinguish. Mostly kidding this looks cool.
- xyst 7y agoI have heard this phrase used before. Would the Skype acquisition by Microsoft be an example of this?
- kbd 7y agoIt's frustrating that they'd release a new CLI and nowhere address its relation to their existing 'hub' CLI. Edit: found a note in their readme on github: https://github.com/cli/cli#comparison-with-hub https://github.com/cli/cli#comparison-with-hub > For many years, hub was the unofficial GitHub CLI tool. gh is a new project for us to explore what an official GitHub CLI tool can look like with a fundamentally different design. While both tools bring GitHub to the terminal, hub behaves as a proxy to git and gh is a standalone tool.
- OJFord 7y ago> hub was the unofficial GitHub CLI tool. 'unofficial'... https://hub.github.com/ https://hub.github.com/ I officially despise how meaningless '[un]official' has become.
- scarejunba 7y agoI love it. There being a spectrum between "blessed" and "work of a random" means that we get more software. And in the end, since it's open source, it's up to me whether I derive value from it.
- OJFord 7y ago? My point is that it wasn't 'work of a random'; it was in a repo under the `github` org; with a first-party GitHub website. OSS is great, I agree, my issue is just with the weird description of GitHub's older similar tool.
- codingaround 7y agoand done by one of the founders. But github despises its own 2 founders. As it grew, culture changed and founders became enemies. So it became better to write a new tool rather that cooperating with some people. Hub has been in development since 2009, for sure the gh team could had cooperated.
- scarejunba 7y ago
- tilolebo 7y agoFrom https://github.com/cli/cli#installation-and-upgrading https://github.com/cli/cli#installation-and-upgrading > gh is available via scoop And I've been using chocolatey the whole time :facepalm. How does scoop compare to choco? (Except for the obvious "no admin permissions needed")
- vips7L 7y agoI've never used Choco, but scoop is fantastic. It's very easy to contribute to and use.
- rumblefrog 7y agoFrom my experience, I find that Chocolately has way more packages in their main "bucket" compared to searching for buckets with choco, however, I do like the isolation of installed programs with choco.
- GordonS 7y agoScoop is more opinionated, in that there is a single, canonical version of each app. My experience with chocolately is very different, as there are often multiple different packaged versions of any given app, and you've no idea which is the "best" one.
- tilolebo 7y agoI usually go for the one with the most downloads, but it's true that it can be confusing. Reminds me of the SUSE package web search back in the days.
- iza 7y agoSee https://github.com/lukesampson/scoop/wiki/Chocolatey-Comparison https://github.com/lukesampson/scoop/wiki/Chocolatey-Compari... In general it is much simpler in its design and implementation. Most packages are portable and do not use installers. It doesn't have quite as many packages as chocolatey though.
- ss3000 7y agoSwitched from chocolatey to scoop a while ago and never looked back. Most package installs don't need admin rights, and for those that do, there's the `sudo` package that it recommends, which is a life saver when working with the terminal on Windows in general.
- tengbretson 7y agoWere the GitHub devs doing anything before Microsoft bought them? All that comes to mind is Atom. MS seems to have really been a shot in the arm for feature development at GH.
- xmprt 7y agoI think it was a combination of that as well as increasing competition from other companies like Gitlab.
- tmpz22 7y agoIIRC they were always making some progress but then they raised money + got acquired and I assumed headcount ballooned at that point which allowed them to focus on non-enterprise facing features more.
- pcr910303 7y agoWell, there was hub[0] back in the day. I also bet there are a load of features that I&you have never heard of, but someone is using them. And, not only adding features is doing something; improving reliability or just maintaining the site, monitoring is also work... So dismissing pre-MS GitHub might not be really appropriate. [0] https://hub.github.com/ https://hub.github.com/
- hultner 7y agoI've been using hub heavily until last year (haven't used github much since), so I was a bit surprised to see this as news. Seems like it's basically the same thing as Hub with some updates b ut most of the flows (and a bunch more) I see were already available through hub.
- milofeynman 7y agoThere are some really nice features in the PR diff section like line-suggestions. I think that went in before MS but could be wrong. I'm hoping they add multiline suggestions someday. Also the big one for me is their Desktop Client. It has constantly improved and it makes my life easier. It has only gotten better after MS acquisition. They added rebase and merge support recently. I still do stuff from the command line (interactive rebase the most), but the Desktop Client really improves my workflow.
- hprotagonist 7y agoI wonder how much this will impact or help forge (https://github.com/magit/forge https://github.com/magit/forge ) , which i have, to my shame, never gotten to authenticate properly.
- TeMPOraL 7y agoSeems to me that Forge already covers all demonstrated features via the GitHub API, so I'm guessing: not at all. Forge is really nice. (In case 'tarsius is reading this, one thing I would wish for is if Forge could work independent of a git repo. I've seen a pattern in several places now where they run a single project in Gitlab with just the issue tracker, and no associated repository.)
- mandarg 7y agoforge and github-review (https://github.com/charignon/github-review https://github.com/charignon/github-review) have given me a near-immersion experience for bitesized code reviews in Emacs. They even work together, via github-review-forge-pr-at-point! The only thing stopping me from using this with larger diffs is the lack of a good way to show more of the surrounding context in github-review. Wonder if there is any interest in making github-review a first-class part of forge.
- hamidul 7y agohttps://www.facebook.com/Norwegian-CrossFit-Final-2020-Live-108565984054474/ https://www.facebook.com/Norwegian-CrossFit-Final-2020-Live-... https://www.facebook.com/Norwegian-CrossFit-Championship-Final-2020-Live-101705354751947/ https://www.facebook.com/Norwegian-CrossFit-Championship-Fin... https://www.facebook.com/Norwegian-CrossFit-Championship-Final-2020-Live-Online-112143013692868/ https://www.facebook.com/Norwegian-CrossFit-Championship-Fin... https://www.facebook.com/Norwegian-CrossFit-Championship-2020-107703727386130/ https://www.facebook.com/Norwegian-CrossFit-Championship-202... https://www.facebook.com/CrossFit-Championship-2020-Live-Online-102918547871813/ https://www.facebook.com/CrossFit-Championship-2020-Live-Onl... https://www.facebook.com/Norwegian-CrossFit-Championship-2020-Live-109532200535064/ https://www.facebook.com/Norwegian-CrossFit-Championship-202... https://www.facebook.com/Norwegian-CrossFit-Championship-Final-2020-Live-108279030662601/ https://www.facebook.com/Norwegian-CrossFit-Championship-Fin... https://www.facebook.com/Norwegian-CrossFit-Championship-Final-2020-108154990763275/ https://www.facebook.com/Norwegian-CrossFit-Championship-Fin... https://www.facebook.com/Norwegian-CrossFit-Championship-2020-Live-Online-108629714047940/ https://www.facebook.com/Norwegian-CrossFit-Championship-202... https://www.facebook.com/Norwegian-CrossFit-2020-Live-Online-108530637391817/ https://www.facebook.com/Norwegian-CrossFit-2020-Live-Online... https://www.facebook.com/Norwegian-CrossFit-Championship-Final-2020-Live-101399121449937/ https://www.facebook.com/Norwegian-CrossFit-Championship-Fin... https://www.facebook.com/Norwegian-CrossFit-Championship-2020-Live-Online-109356573974932/ https://www.facebook.com/Norwegian-CrossFit-Championship-202... https://www.facebook.com/TribalClashAustralia/ https://www.facebook.com/TribalClashAustralia/ https://www.facebook.com/Rally-Sweden-2020-Live-Online-107142670865888/ https://www.facebook.com/Rally-Sweden-2020-Live-Online-10714... https://www.facebook.com/Rally-Sweden-2020-Live-110507593858063/ https://www.facebook.com/Rally-Sweden-2020-Live-110507593858... https://www.facebook.com/Rally-Sweden-2020-102007734721523/ https://www.facebook.com/Rally-Sweden-2020-102007734721523/ https://www.facebook.com/WRC-Rally-Sweden-2020-Live-Online-101643208092287/ https://www.facebook.com/WRC-Rally-Sweden-2020-Live-Online-1... https://www.facebook.com/WRC-Rally-Sweden-2020-Live-106240787624328/ https://www.facebook.com/WRC-Rally-Sweden-2020-Live-10624078... https://www.facebook.com/WRC-Rally-Sweden-2020-106621780919260/ https://www.facebook.com/WRC-Rally-Sweden-2020-1066217809192... https://www.facebook.com/World-Championships-Biathlon-Antholz-2020-102835987971239/ https://www.facebook.com/World-Championships-Biathlon-Anthol... https://www.facebook.com/IBU-World-Championships-Biathlon-Antholz-2020-104113874507683/ https://www.facebook.com/IBU-World-Championships-Biathlon-An... https://www.facebook.com/IBU-World-Championships-Biathlon-Antholz-2020-Live-Online-100967968160550 https://www.facebook.com/IBU-World-Championships-Biathlon-An... https://www.facebook.com/World-Championships-Biathlon-2020-107141534200316/ https://www.facebook.com/World-Championships-Biathlon-2020-1... https://www.facebook.com/World-Championships-Biathlon-2020-Live-105071271077169/ https://www.facebook.com/World-Championships-Biathlon-2020-L... https://www.facebook.com/World-Championships-Biathlon-2020-Live-Online-100752081515895/ https://www.facebook.com/World-Championships-Biathlon-2020-L... https://www.facebook.com/Biathlon-World-Championships-Antholz-2020-Live-Online-111930047048726/ https://www.facebook.com/Biathlon-World-Championships-Anthol... https://www.facebook.com/World-Championships-Biathlon-Antholz-2020-Live-Online-104651197786411/ https://www.facebook.com/World-Championships-Biathlon-Anthol... https://www.facebook.com/World-Championships-Biathlon-Antholz-2020-Live-104614861123810/ https://www.facebook.com/World-Championships-Biathlon-Anthol...
- imjustsaying 7y agoHas anyone made a customizable URL bar CLI like Duckduckgo's shebangs (which is not customizable)? This is the new CLI i want most
- est31 7y agoFirefox has the ability to customize shebangs. https://support.mozilla.org/en-US/kb/assign-shortcuts-search-engines https://support.mozilla.org/en-US/kb/assign-shortcuts-search...
- rrdharan 7y agoSo does Chrome, and even Safari used to be able to do this via extensions until very recently. I would assume the parent poster wants something richer than a single substitution though?
- imjustsaying 7y agoI didn't know this. I thank you both.
- deleted 7y ago[deleted]
- elpakal 7y agoAwesome, but I really wish GH would open source all of their own apps. I always find it hypocritical that they do not, given their OSS advancement.
- monkey_slap 7y agogh is open source https://github.com/cli/cli/ https://github.com/cli/cli/
- miguelmota 7y agoFrom hub's main developer Mislav's blog [0] > Since I personally don’t find it valuable to spend my time maintaining two separate command-line clients for GitHub, I will gradually reduce my involvement with hub to a point where it either goes into complete feature-freeze mode or finds new maintainership. So it sounds like gh will be the successor to hub. [0] https://mislav.net/2020/01/github-cli/ https://mislav.net/2020/01/github-cli/
- captn3m0 7y agoI switched long back, when I realised that gh was faster, easier to install, and there was no syntax change on the commands. Edit: I sound very confused in this thread because I still call the old Golang version gh in my scripts. Thought it was the same codebase graduating till I read this.
- dijit 7y agoAnything similar to this for gitlab?
- simon04 7y agohttps://zaquestion.github.io/lab/ https://zaquestion.github.io/lab/ – Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
- reddit_clone 7y agoHow does this work with internally hosted github server? When I tried a command on an existing clone folder, it wants to go to github.com to authenticate.
- billygriffin22 7y agoWe don't have GitHub Enterprise Server support yet, but that's something we're planning to work on after gh is out of beta.
- chmaynard 7y agoDoes checking out a pull request locally include pulling down all the comments? I assume not, but that would be a cool feature.
- billygriffin22 7y agoIt doesn't - it's just the code on that PR, but you can also use a --preview flag on pr view to get render the body of the PR in your terminal. We may explore something around incorporating comments down the road as well.
- SEJeff 7y agoToo bad this doesn't work with Github Enterprise :(
- billygriffin22 7y agoSorry! We're hoping to get to it after gh is out of beta. It's definitely something we're hearing people want, and I'm excited for when we can say it just works. :)
- SEJeff 7y agoI shared this in our #git internal slack channel and immediately had a dozen people bemoaning it not supporting our GHE. Thanks!
- billygriffin22 7y agoAbsolutely, thanks for sharing and apologies that we're not quite there yet!
- KenanSulayman 7y agoIs there a way to install this without using Homebrew? I know that the author of it works at Github now, but that definitely shouldn't be the only option..
- blueline 7y agothere are prebuilt binaries https://github.com/cli/cli/releases/tag/v0.5.4 https://github.com/cli/cli/releases/tag/v0.5.4
- dcchambers 7y agoIn this case, you can download the prebuilt binaries from the Github repo page itself under the 'Releases' tab. But as with anything in Brew, if you can't find the installable binary or tarball online yourself, you can simply look at the Brew formula to find the URL and download+install it manually. https://github.com/github/homebrew-gh/blob/19a5398d3c022e80fb0c7a388108781914dcf5bb/Formula/gh.rb#L9 https://github.com/github/homebrew-gh/blob/19a5398d3c022e80f...
- EamonnMR 7y agoMy cynical side wonders if this is a case of Embrace Extend Extinguish-move developer mindshare off of git (GitHub as commodity git hosting) and into vendor lock-in.
- zelly 7y agoYes, time to move to gitlab or self hosted gitlab
- sneak 7y agoThe time to do that was when people asked GitHub to stop providing services to ICE to help run concentration camps for children and their military-industrial complex owners at Microsoft just shrugged and said “whatever”. (It continues to date. Microsoft has always been more than happy to sell software to the violent and authoritarian. The Snowden slides are PowerPoint.) https://techcrunch.com/2019/11/13/github-faces-more-resignations-in-light-of-ice-contract/ https://techcrunch.com/2019/11/13/github-faces-more-resignat... But yes, time to switch. I highly recommend Gitea + Drone, it’s the setup I use. Gitea thankfully supports U2F (and oauth for logging into Drone) which is awesome, and although they took shit for plainly ripping off GitHub’s UI back when GitHub was beloved, it’s super convenient to have a nearly identical UI to switch to now.
- tripzilch 7y agoWell that completely passed under the radar. Last year November? Can't remember reading about this .. Didn't we judge Nokia-Siemens when they did similar, developing DPI infrastructure for Iran and Egypt? Good on those people resigning over this, that shows some backbone. > “We do not know the specific projects that the on-premises GitHub Enterprise Server license is being used with, but recognize it could be used in projects that support policies we both agree and disagree with.” That sounds like when Nokia Siemens Networks provided communications intercept technology with foresight of how the Iranian authorities might use it to violate human rights. That reasoning does NOT hold, if the "policies we disagree with" part literally equates to children kept in cages. Then "I'm just making a service, not doing politics" is being wilfully blind. People resigned over this. That also means, the people who are still there, did not.
- turdnagel 7y agoFrustrating that the CLI is an “open” beta while the iOS and Android clients are not. I’d love to test the iOS beta but I have no idea where I am on the waiting list.
- machello13 7y agoThere's a maximum number of users allowed for a TestFlight test (I believe 10,000), so it's out of GitHub's control.
- billygriffin22 7y agoYes, this! We'd love to open the beta up to more folks, but we're capped at that number for now. Excited to bring it to more people soon though!
- kccqzy 7y agoDoesn't it bother anyone that in the first graphic they used typographically correct Unicode quotes, but these quotes won't work in shell? I initially thought that these were screenshots in an actual minimalistic terminal emulator but apparently these are just graphic designs.
- duxup 7y agoForgive me as I'm a bit of a noob but as it is I'm using git bash on windows. Any reason I'd bother to switch to this?
- xyst 7y agoThis is not a "git" CLI since git already has a CLI. This is a CLI on top of a CLI that directly interfaces with Github (a VCS provider). Basically, it's for the terminal geeks that don't want to bother with using the web interface of GH for daily tasks.
- duxup 7y agoOh I got it now, thanks. Two different ends of the workflow.
- ken 7y agoThis pains me. They saw the "what" but not the "why". The point of using a command line is not because a VT100 emulator is an ideal way to view data (it's not). It's so we can combine commands, using pipes and redirection. I don't want to learn special new filtering flags. I want to get raw data that I can pipe to grep or cut or any of the other dozens of tools I've been learning and using for the past 25 years. The point of using a distributed version control system is so I can store it all locally. This new tool defaults to only 30 items, and cannot fetch more than 100. So even if you're willing to put up with the multi-second latency of hitting their servers for every command line operation (it feels like CVS all over again), you still can't say "give me everything and let me grep it". You have no choice but to use the 3 ways they give you to filter (assignee, label, state -- not title, comments, or date). I've got a 50Mbps network connection, a 500GB SSD, 16GB of memory, and an 8-core CPU, and now instead of putting all that to work running JavaScript to access my bug reports, I'm fetching them as plain text at a maximum of about 5000 bytes at a time. (Net throughput is on par with an Apple II with a 14.4Kbps modem.) Is this an improvement? I do not understand why GitHub Issues aren't git repos, like most other GitHub collections. Then we wouldn't need a completely new (and slow/complex/limited) tool to read bug reports on the command line. Perlis had this figured out back in 1982: using common tools for disparate data is a killer feature. That's why we're still using the command line in a way that looks nearly identical to how it worked in the 1980's, and a few generations of other interfaces have come and gone since then and failed to displace it.
- RunningDroid 7y ago>I do not understand why GitHub Issues aren't git repos, like most other GitHub collections. They are probably deliberately avoiding making Github issues available as git repos because they suspect their competitors would copy the format and reduce the effort required to migrate to a different service.
- SquishyPanda23 7y ago> you still can't say "give me everything and let me grep it" Wait you can't grep over your case base if you use this tool? Have they at least improved their code search? Last few times I used it it was very limited.
- ryuukk_ 7y agoanother day, another cli tool written in GO this shows how good this language is dotnet team at microsoft needs to wake up, they are soon going to be extinct
- deleted 7y ago[deleted]
- pimlottc 7y ago> https://github.com/cli/cli https://github.com/cli/cli Hmm, wonder why they felt the need to move it to its own org? What's wrong with `github/cli`? That's arguably clearer than the very generic `cli/cli`. Looks like it used to be at github/gh-cli before January 24 [0]; I wonder what kind of compensation they gave to the previous owner of `cli`? [1] 0: https://github.com/cli/cli/commit/a710893fc107c9a269d8654f0834d752a0b999f7 https://github.com/cli/cli/commit/a710893fc107c9a269d8654f08... 1: https://web.archive.org/web/20170331061435/https://github.com/cli https://web.archive.org/web/20170331061435/https://github.co...
- wereHamster 7y agoMaybe to be able to use cli.github.com…
- contingencies 7y agoCommand line features I want for a hosted RCS/VCS: multi-repo add/remove user (support hire/fire employees), CI/CD features (set/check/pre-commit enforce tests and metrics, view state, get/set callbacks), create/config new repos. The example commands shown support automatic creation of issues which is OK for CI/CD, but PRs are not something we use or care about. I understand it from marketing as a 'makes us different to raw git' sorta differentiating feature, but it's just not part of many company's workflow. I love and miss from previous Gitlab repos strong pre-commit hooks and being able to reject commits that breach policy or break tests. Without this CI/CD needlessly chokes on issues, state and manual process.
- __float 7y agoIt sounds like you're looking more for an administrative CLI for Github, rather than the usual "Github user" experience in the command-line. What do you use instead of PRs? (Honestly, not using PRs and paying for GHE sounds like a... less-than-ideal way to spend your money?) The PR workflow + Checks are a good "equivalent" (IMO, nicer) experience to pre-commit hooks.
- contingencies 7y agolooking more for an administrative CLI for Github, rather than the usual "Github user" experience Yes. Because I already have git, which by definition already does 99% of what I need as a user. Issues + remote repo admin + CI/CD are the exceptions. What do you use instead of PRs? Direct commit with no branching. IMHO PRs are an arguable misfeature of hosted RCS/VCS to keep people on those platforms. We have a high proportion of non software development projects/users.
- __float 7y agoIssues, CI/CD, and code review are a huge part of the development process that git does not do. Committing directly might work for a small team, but I can't imagine that scales. I suppose we want fundamentally different things here, and sadly for you, I don't think you're a large enough portion of the audience that GitHub will ever create the tool you need. Their APIs are open, though -- you can probably make one yourself.
- pojntfx 7y agoNow open source GitHub! It is such a hypocritical stance to talk about how great FLOSS is while at the same time not producing the product itself as FLOSS.
- justlexi93 7y agoHow is this different from the hub command?
- donutdonut 7y agoGitHub introducing a CLI is kinda like putting powered sugar on a glazed doughnut.
- alacombe 7y agoTried to use it from a terminal... % gh pr list Notice: authentication required Press Enter to open github.com in your browser... /bin/xdg-open: line 881: www-browser: command not found /bin/xdg-open: line 881: links2: command not found ^C 1) I would have expected it to be able to work with the installed ssh keys used with the associated repo, but no luck :-( 2) RPM is broken, as it does not include any dependencies, and 3) even after install links, it fails with: [warn] Epoll ADD(1) on fd 0 failed. Old events were 0; read change was 1 (add); write change was 0 (none); close change was 0 (none): Operation not permitted ERROR: event_add failed: Operation not permitted at select.c:415, handle 0 4) I don't think they're gonna be handling 2FA :-/ I guess that's gonna be a pass for now...
- Aissen 7y agoI wish some people at github would address the bad mobile version of their website. It's impossible to do anything done with the current mobile UI without going through the desktop version: - see the language stats for this repo - see commit history in one tap - read the full readme - see all files at top level - etc. If you're already hard at work on this, thanks in advance.
- epiceric 7y agoI think they are going to avoid any web mobile changes while they are building and promoting their mobile app, which is still in beta. And honestly, this official app personally feels that it's even worse to navigate. Hard to navigate to your most recent repos, reading/following issues/PRs is terrible (a good 1/6th of my screen is covered by a tab in the bottom corner that I accidentally open a lot of the time when scrolling), no CI information, can't differentiate what's new and old discussion when opening a notification, can't check other branches, can't generate tokens (very useful when commiting from someone else's machine if you have 2FA), and in general it prioritizes elements without a clear reason, like the "subscribe"/"unsubscribe" button for repos. I currently still prefer the Fasthub app for now. It still doesn't have all features above or from the web version, and it's not updated often since the app is being refactored entirely, but it's open source and it has a decent UI/UX. Definitely better than the beta official app.
- zeveb 7y ago> I think they are going to avoid any web mobile changes while they are building and promoting their mobile app, which is still in beta. In theory, I would prefer a native mobile app to a web page, for a number of reasons. First of all, a web page is ideally static, with no JavaScript and no interactivity other than POST submission — a native app provides a developer the opportunity to add behaviour and interactivity appropriately. Second, a native app can be customised to the particular needs of working on a mobile device. But in practice I avoid apps like the plague. I no longer trust that Android will properly shield one app's data from other apps: for all I know the GitHub app will upload all of my photos and text files to Microsoft for analysis. And then so many mobile apps aren't even native mobile: they are just wrapped web pages, in which case one gets the worst of both worlds: a potentially-insecure app which can break the sandbox, and a non-native web-page interface. I used to be really excited about smart phones, but now all I really want is something with a web browser, phone calls, Signal and offline maps.
- xRazoo 7y agoExcited to try this out, but not sure how much use I’ll actually get out of this. Might be a slightly faster way to look through issues for now.
- jdmg94 7y agoI personally use the git CLI for my day to day work needs, I think this was so unnecessary considering there are so many other things that Github could focus on. Microsoft is once again ignoring the mobile market, shittè mobile app, shittè mobile website, but hey, a redundant CLI FTW
- julianlam 7y agoGive me a way to easily clone a repo and I'm sold. `gh clone nodebb/nodebb -https`
- tripzilch 7y agoSo is this like an improved version of git with an easier command line syntax? As in, can you use it for local gittering, or does it really require a connection to github all the time? Because I don't feel good about this tool if it's basically another trick at lock-in. Git the versioning system is currently pretty open; You can use your own local repos, host on gitlab or github or your own server, and you really do roughly get the same experience from the command line. Like, is this going to prompt me to host my local git repos on github? Not whether it can, of course it can, will it nag me? People used to call these worries FUD but they also put ads in the start menu and turned telemetry up to 11, for an OS. I think current day it's a legitimate worry to consider. I haven't really had the misfortune of having to deal with such attitude towards users on the command line. But we'll see. Or do they see "developers" as an audience to be treated differently than "end users".