gho

Crates.iogho
lib.rsgho
version
sourcesrc
created_at2023-01-11 16:31:37.938549
updated_at2024-12-10 11:42:09.814116
descriptioncli to open your repo in the Github/Gitlab web ui
homepage
repositoryhttps://github.com/chevdor/gho
max_upload_size
id756532
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Chevdor (chevdor)

documentation

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 remote

Options:
  -h, --help     Print help
  -V, --version  Print version
Commit count: 25

cargo fmt