Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul README #16

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 24 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
**Gas is the Git Author Switcher.** Do you have a personal and a work email and use the same computer to commit? Try gas to help you switch between the two.
Do you pair program and want to reflect that it's not only you writing the code? Use gas to switch between you and your partner's commiter.

Gas is extensible.

<ul>
<li style="display: block; float: left; width: 25%; font-size: 28px;">
<a href="#get_it">Get it</a>
Expand All @@ -13,21 +18,14 @@
</li>
</ul>

<br />

Gas helps you manage your git authors. Do you have a personal and a work email and use the same computer to commit. Try gas to help you switch between the two.
Do you pair program and want to reflect that it's not only you writing the code, try gas to switch between your pair user and your regular.

Gas is extensible and it's easy to extend with any functionality you may want.

<a name="get_it"></a>
## Get it

The best way to install gas is with RubyGems:
The best way to install gas is with `gem`:

$ [sudo] gem install gas
$ sudo gem install gas

You can install from source:
You can also install it from source:

$ cd gas/
$ bundle
Expand All @@ -36,15 +34,13 @@ You can install from source:
<a name="use_it"></a>
## Use it

### Built-in commands

* add NICKNAME NAME EMAIL - adds a new user to gas
* delete NICKNAME - deletes a user from gas
* import NICKNAME - imports the user from .gitconfig into NICKNAME
* list - lists all users
* plugins - lists all installed plugins
* show - shows the current user
* use NICKNAME - sets the user with NICKNAME as the current user
* `add PROFILE NAME EMAIL` - adds a new user to gas
* `delete PROFILE` - deletes a user from gas
* `import PROFILE` - imports the user from .gitconfig into PROFILE
* `list` - lists all users
* `plugins` - lists all installed plugins
* `show` - shows the current user
* `use PROFILE` - sets the user with PROFILE as the current user

The default task is to list authors

Expand All @@ -54,7 +50,7 @@ The default task is to list authors

This lists the authors that are set up in the ~/.gas/gas.users file.

You can import your current user by giving it a nickname
You can import your current user by giving it a PROFILE

$ gas import current_user

Expand Down Expand Up @@ -84,31 +80,32 @@ To extend already existing commands make an executable with the name gas-yourplu
This makes it possible to extend plugins too eg. gas-myplugin-stats will extend the stats command, if installed.

An example plugin exists at https://github.com/walle/gas_stats it's written in ruby, and distributed with rubygems. But this is not a requirement.
It extends gas both with adding functionality to built-in commands(counting statistics) and adding own functionality(gas-stats).

Some plugins extend gas by adding functionality to built-in commands (ex. gas-stats) as well as by adding its own functionality (ex. gas-ssh).

<a name="plugins"></a>
## Plugins

### Available plugins

#### gas_stats
#### gas\_stats

Shows usage statistics for gas. Serves as a reference implementation of a plugin.

Code: https://github.com/walle/gas_stats

Installation: $ gem install gas_stats
Installation: `$ gem install gas_stats`

Author: [Fredrik Wallgren](https://github.com/walle)

#### gas_ssh
#### gas\_ssh

Adds ssh support for gas.

Work in progress right now.
Currently a work in progress.

Code: https://github.com/TheNotary/gas_ssh
Code: https://github.com/TheNotary/gas\_ssh

Installation: $ gem install gas_ssh
Installation: `$ gem install gas_ssh`

Author: [TheNotary](https://github.com/TheNotary)