summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-10 20:14:34 +0300
committerGitHub <[email protected]>2017-05-10 20:14:34 +0300
commit1c743d8c0b8235ea2dbf0856987f8bd5b77a0042 (patch)
tree139eb01e2305d3d43800095bc5db3fecd407a15d /readme.md
parent5db452a63f1b8ff0319f08986a4a04324647738f (diff)
parent9de57bdcf5246827e9b1a57c905203e2edf6edf4 (diff)
Merge pull request #10 from posener/alongside
Enable completion and executable be the same command
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md9
1 files changed, 7 insertions, 2 deletions
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)