Go to file
Eyal Posener 2b6aed2b1e Merge pull request #3 from posener/predicate-as-function-type
Predicate as function type
2017-05-06 21:04:11 +03:00
gocomplete Change Predicate to be of function type 2017-05-06 20:24:53 +03:00
install fmt 2017-05-06 19:11:16 +03:00
tests Fix tests 2017-05-06 00:46:03 +03:00
.gitignore Add go test script and travis file 2017-05-06 00:38:16 +03:00
.travis.yml Fix travis, remove go.test.sh 2017-05-06 20:58:01 +03:00
cmd.go Add easy way to install the bash completion 2017-05-06 18:55:54 +03:00
command.go Change Predicate to be of function type 2017-05-06 20:24:53 +03:00
log.go Roughly add all go commands 2017-05-06 00:25:27 +03:00
option.go Roughly add all go commands 2017-05-06 00:25:27 +03:00
predicate.go Change Predicate to be of function type 2017-05-06 20:24:53 +03:00
readme.md enhance readme 2017-05-06 18:59:06 +03:00
run.go Add easy way to install the bash completion 2017-05-06 18:55:54 +03:00
run_test.go Change Predicate to be of function type 2017-05-06 20:24:53 +03:00

readme.md

complete

Build Status codecov

WIP

A tool for bash writing bash completion in go.

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.

go command bash completion

In gocomplete there is an example for bash completion for the go command line.

Install

  1. Type in your shell:
go get github.com/posener/complete/gocomplete
gocomplete -install
  1. Restart your shell

Uninstall

gocomplete -uninstall