Skip to content

antoinecarton/gitweb

 
 

Repository files navigation

gitweb

Publish

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.

preview

Intallation

The Cargo way

cargo install gitweb

The binary way

Download the binary from the latest release and put it in your PATH.

Usage

gitweb will by default open the remote in the browser of the current repository.

gitweb 0.1.13

USAGE:
    gitweb [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -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
    -c, --commit <commit>      Set a commit
    -r, --remote <remote>      Set the remote
    -t, --tag <tag>            Set the tag (alias for --branch)

--branch, --tag

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.

--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)
  • the default web browser on the system

--commit

gitweb will open the commit given as a parameter on the remote repository.

--remote

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.

About

🌲 Open the current remote repository in your browser

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%