Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/naoty/ext

A convention for command extensions
https://github.com/naoty/ext

Last synced: about 1 month ago
JSON representation

A convention for command extensions

Awesome Lists containing this project

README

        

# ext

A convention for command extensions

## Installation

```
$ go get github.com/naoty/ext
```

## Usage

`ext` provides a convention for command extensions. If you want to extend a command by a new subcommand, you should add a command named `-` such as `git-pr`. `ext` will look up and run the extension before an original command.

```
$ alias git="ext git"
$ git pr
```

If `git-pr` is found, `ext` will run `git-pr` instead `git pr`.

```
$ alias gem="ext gem"
$ gem uninstall all
```

`ext` looks up and runs a binary in following order: `gem-uninstall-all`, `gem-uninstall all`, `gem uninstall all`.

## Author

[naoty](https://github.com/naoty)