Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chevdor/gho
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.
https://github.com/chevdor/gho
2021 chevdor cli git github gitlab rust
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/chevdor/gho
- Owner: chevdor
- Created: 2021-06-05T16:48:14.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T13:00:21.000Z (about 1 year ago)
- Last Synced: 2024-09-14T17:43:36.275Z (4 months ago)
- Topics: 2021, chevdor, cli, git, github, gitlab, rust
- Language: Rust
- Homepage:
- Size: 549 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 remoteOptions:
-h, --help Print help
-V, --version Print version