在编辑器中打开github链接
repo-link的Python项目详细描述
回购链接
!
在您喜爱的编辑器中打开github链接
自动运行clone
,checkout
,并为您打开正确的行!
安装
通过运行安装
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","~"]}