Project

wg

0.0
No commit activity in last 3 years
No release in over 3 years
wg is a simple git(hub|lab) command line tool to manage git projects locally in the ~/w/g/ directory
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0
~> 3.0
 Project Readme

wg

wg is a neat little command line tool to manage your workspace. It allows you to easily manage git(hub|lab) projects locally.

It is inspired by Jeff Dickey's gh tool.

Installation

wg is packaged as a ruby gem, but due to the limitations of the shell, you also need to add an alias to your shell's config.

First, install wg with: gem install wg

Then, add function wg { resp="$(wg_r $@)"; if [[ ${resp:0:1} == "!" ]] ; then cd "${resp:1}"; else echo "${resp}"; fi } to your .bashrc file (or whatever shell's rc file you use (.zshrc, etc...)).

Happy wg'ing!

Usage

wg USER/REPO will change the current shell's directory to ~/w/g/h/user/repo if the repo already exists, or clone the repo there if it does not already exists. Defaults to github (the 'h').

Options

  • -l --lab will clone from gitlab instead of github or open ~/w/g/l/user/repo
  • -h --help displays a delightful help message.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/samginn/wg.

License

The gem is available as open source under the terms of the MIT License.