Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inkel/prefix
DRY
https://github.com/inkel/prefix
cli go golang tool
Last synced: about 2 months ago
JSON representation
DRY
- Host: GitHub
- URL: https://github.com/inkel/prefix
- Owner: inkel
- License: mit
- Created: 2016-10-24T13:41:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-04T14:38:03.000Z (over 7 years ago)
- Last Synced: 2024-06-20T11:14:53.443Z (8 months ago)
- Topics: cli, go, golang, tool
- Language: Go
- Size: 21.5 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Don't Repeat Yourself
Prefix a command to avoid repetition.## Installation
```
go install github.com/inkel/prefix
```Or download the latest [release](https://github.com/inkel/prefix/releases).
## Usage
```
$ prefix git
git > init
Initialized empty Git repository in /home/inkel/dev/go/src/github.com/inkel/prefix/.git/
git > add main.go main_test.go
git > s
## Initial commit on master
A main.go
A main_test.go
?? prefix
git > commit -m "initial commit"
[master (root-commit) 6727b37] initial commit
2 files changed, 138 insertions(+)
create mode 100644 main.go
create mode 100644 main_test.go
git > remote add origin [email protected]:inkel/prefix.git
git > push -u origin master
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.99 KiB | 0 bytes/s, done.
Total 4 (delta 0), reused 0 (delta 0)
To [email protected]:inkel/prefix.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
git > ^D
```## License
See [LICENSE](LICENSE).