我如何将命令行中的内容传递给新的Github主旨? [英] How do I pipe something from the command line to a new Github gist?

查看:138
本文介绍了我如何将命令行中的内容传递给新的Github主旨?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这是否存在,但我希望能够做到:

I don't know if this exists yet, but I'd love to be able to do:

$ cat mygist.js | gh new gist

让它返回URL(并可能将其复制到剪贴板/打开它浏览器)。

And have it return the URL (and possibly copy it to the clipboard / open it in the browser).

推荐答案

试试这个宝石: https://github.com/defunkt/gist

为我工作^ _ ^

这篇关于我如何将命令行中的内容传递给新的Github主旨?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆