summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
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)