From 9de57bdcf5246827e9b1a57c905203e2edf6edf4 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Wed, 10 May 2017 07:28:43 +0300 Subject: Enable completion and executable be the same command Fixes #6 --- readme.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 81e0864..0010098 100644 --- a/readme.md +++ b/readme.md @@ -85,7 +85,12 @@ func main() { // run the command completion, as part of the main() function. // this triggers the autocompletion when needed. - // name must be exactly as the binary that we want to complete. - complete.Run("run", run) + // name must be exactly as the binary that we want to complete. + complete.New("run", run).Run() } ``` + +## Self completing program + +In case that the program that we want to complete is written in go we +can make it self completing. Here is an [example](./example/self/main.go) -- cgit v1.2.3