2017-05-05 16:33:21 -05:00
|
|
|
# complete
|
|
|
|
|
2017-05-05 16:39:59 -05:00
|
|
|
[![Build Status](https://travis-ci.org/posener/complete.svg?branch=master)](https://travis-ci.org/posener/complete)
|
2017-05-05 16:47:42 -05:00
|
|
|
[![codecov](https://codecov.io/gh/posener/complete/branch/master/graph/badge.svg)](https://codecov.io/gh/posener/complete)
|
2017-05-05 16:39:59 -05:00
|
|
|
|
2017-05-05 16:33:21 -05:00
|
|
|
WIP
|
|
|
|
|
2017-05-06 10:55:54 -05:00
|
|
|
A tool for bash writing bash completion in go.
|
2017-05-05 16:33:21 -05:00
|
|
|
|
2017-05-06 10:55:54 -05:00
|
|
|
Writing bash completion scripts is a hard work. This package provides an easy way
|
|
|
|
to create bash completion scripts for any command, and also an easy way to install/uninstall
|
|
|
|
the completion of the command.
|
2017-05-05 16:33:21 -05:00
|
|
|
|
2017-05-06 10:55:54 -05:00
|
|
|
## go command bash completion
|
|
|
|
|
|
|
|
In [gocomplete](./gocomplete) there is an example for bash completion for the `go` command line.
|
|
|
|
|
|
|
|
### Install
|
2017-05-05 16:33:21 -05:00
|
|
|
|
|
|
|
```
|
2017-05-06 10:55:54 -05:00
|
|
|
go get github.com/posener/complete/gocomplete
|
|
|
|
gocomplete -install
|
2017-05-05 16:33:21 -05:00
|
|
|
```
|
|
|
|
|
2017-05-06 10:55:54 -05:00
|
|
|
### Uninstall
|
2017-05-05 16:33:21 -05:00
|
|
|
|
|
|
|
```
|
2017-05-06 10:55:54 -05:00
|
|
|
gocomplete -uninstall
|
2017-05-05 16:33:21 -05:00
|
|
|
```
|