Crates.io | gitweb |
lib.rs | gitweb |
version | 0.3.5 |
source | src |
created_at | 2019-03-05 16:23:50.024815 |
updated_at | 2022-03-09 22:23:12.518095 |
description | Open the current remote repository in your browser |
homepage | https://github.com/yoannfleurydev/gitweb |
repository | https://github.com/yoannfleurydev/gitweb |
max_upload_size | |
id | 118914 |
size | 48,349 |
Some of the flags and options are subject to change in the future. Ideas are welcome. Ideas are bulletproof (V).
gitweb
is a command line interface I created mainly to learn Rust.
brew install yoannfleurydev/gitweb/gitweb
# or
brew tap yoannfleurydev/gitweb
brew install gitweb
cargo install gitweb
Download the binary from the latest release and put it in your PATH.
sudo port selfupdate
sudo port install gitweb
gitweb
will by default open the remote in the browser of the current
repository.
gitweb 0.3.1
USAGE:
gitweb [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
-M, --merge-request Set the merge request flag
-V, --version Prints version information
-v, --verbose Set the verbosity of the command
OPTIONS:
-b, --branch <branch> Set the branch (alias for --tag)
-B, --browser <browser> Set the browser [env: BROWSER=]
-c, --commit <commit> Set a commit
-r, --remote <remote> Set the remote
-t, --tag <tag> Set the tag (alias for --branch)
gitweb
will open the current branch or tag on the remote repository. You can
override the behavior by giving either --branch
or --tag
flag with the
custom branch or tag you want to open in the browser.
gitweb
tries to start one of the following browser (in that order of priority):
--browser
option given in the command line$BROWSER
on Linux 🐧 or %BROWSER%
on Windows 🏁 (this is a non standard variable)gitweb
will open the commit given as a parameter on the remote repository.
gitweb
will open the origin remote if it exists. You can override the behavior
by giving the --remote
flag with the custom remote you want to open.