gho

所属分类:Git
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-10-24 13:00:21
上 传 者sh-1993
说明:  用Rust编写的一个简单的多平台实用程序,可以在gitlab或github上的项目回购中打开浏览器。它允许您“jum...,
(A simple multi-platform utility written in Rust that opens your browser in your project’s repo on gitlab or github. It allows you to "jump" to gihub or gitlab from your console.)

文件列表:
.editorconfig (240, 2023-10-24)
.rustfmt.toml (79, 2023-10-24)
Cargo.lock (21561, 2023-10-24)
Cargo.toml (525, 2023-10-24)
doc/ (0, 2023-10-24)
doc/usage.adoc (205, 2023-10-24)
justfile (887, 2023-10-24)
logo.png (131909, 2023-10-24)
rust-toolchain.toml (88, 2023-10-24)
src/ (0, 2023-10-24)
src/main.rs (2226, 2023-10-24)
src/opts.rs (313, 2023-10-24)

# gho A simple multi-platform cli utility written in Rust that opens your browser in your project’s repo on gitlab or github. While a bash script like the following could work, that will not work on Windows: gho () { ( set -e; git remote -v | grep push; remote=${1:-origin}; echo "Using remote $remote"; URL=$(git config remote.$remote.url | sed "s/git@\(.*\):\(.*\).git/https:\/\/\1\/\2/"); echo "Opening $URL..."; open $URL ) } `gho` on the other hand, should work fine (testers and feedback are welcome). The url is fetched on your remotes. ## Install cargo install --locked --git https://github.com/chevdor/gho ## Usage - `gho` to simply open the first remote - `gho upstream` to open your `upstream` remote Command line utility to quickly open your github/gitlab repo in a browser Usage: gho [REMOTE] Arguments: [REMOTE] Name of a remote Options: -h, --help Print help -V, --version Print version

近期下载者

相关文件


收藏者