在编辑器中打开github链接

repo-link的Python项目详细描述


回购链接

Build Status

在您喜爱的编辑器中打开github链接

自动运行clonecheckout,并为您打开正确的行!

安装

通过运行安装

pip install repo_link

用法:

    repo_link https://github.com/Tadaboody/repo_link/blob/master/repo_link/repo_link.py#L24
usage: repo_link [-h][--parents PARENTS [PARENTS ...]][--editor EDITOR][--config CONFIG]
                 link

Open github link in editor

positional arguments:
  link                  The opened link

optional arguments:
  -h, --help            show this help message and exit
  --parents PARENTS [PARENTS ...]
                        Directories where the repository will be searched. if
                        not found it will be cloned into the first one
  --editor EDITOR       The editor opened (default: EDITOR)
  --config CONFIG       A json file where command line options can be hard-
                        coded, default:~/.repo_link_config.json

可以给出一个配置json,如下所示

{"editor":"vim","parents":["~/Forks","~"]}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java+Brave+Zipkin:问题是,跟踪总是一样的   swing能否取消Java中的特定TimerTask?   java以编程方式重新运行失败的TestNG测试   java DefaultMessageListenerContainer未从IBM MQ读取消息   使循环结果显示在一个数组到一个数组中。Java中的toString   tomcat java。lang.NoClassDefFoundError在对GlassFish/Payara部署战争时出错   Java中的增量算法   Java中lambda类的类名是什么意思?   java图像url无法加载安卓 Imageview实际图像为“PNG”格式   java如何使用JPA使库对象数据库持久化?   java如何让onClickListener从另一个活动接收意图信息   运行时如何使Java程序反复启动   java如何在Spring上的ApacheCamel中一开始就并行运行两条路由?   java如何使用SeleniumWebDriver从以下div获取文本   将Google电子表格API与JAVA一起使用时,引用中的excel公式单元格值未更新   fileinputstream如何在Java中读/写HashMap对象到文件?   使用java调用Postgresql的过程   仅在集合中使用java方法