Dynamically generate list of completions (#1595)

* Dynamically generate list of completions

* Update contribution guide

* Add unit tests
This commit is contained in:
Joe Lim authored and GitHub committed 2024-02-12 10:19:17 +11:00
1 parent ac32468629
commit ab54329570
3 files changed
+77 -140

No files matched your search

-1
View File
@@ -27,7 +27,6 @@ Adding a new option usually requires the following steps:
- Add default option value to `init` function in `opts.go`
- Add option evaluation logic to `setExpr.eval` in `eval.go`
- Implement the option somewhere in the code
- Add option name to `gOptWords` in `complete.go` for tab completion
- Add option name and its default value to `Quick Reference` and `Options` sections in `doc.md`
- Run `gen/doc-with-docker.sh` to update the documentation
- Commit your changes and send a pull request