Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/naoty/ext
- Owner: naoty
- License: mit
- Created: 2015-07-13T07:12:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-13T14:59:24.000Z (over 9 years ago)
- Last Synced: 2024-12-02T14:14:13.777Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 113 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)