Add an entry point for the completion tool

This commit is contained in:
Kovid Goyal
2022-09-06 13:17:15 +05:30
parent f4de6d2a10
commit 005a9c7090
4 changed files with 183 additions and 59 deletions

View File

@@ -9,6 +9,7 @@ import (
"kitty/tools/cli"
"kitty/tools/cmd/at"
"kitty/tools/completion"
)
func main() {
@@ -18,6 +19,8 @@ func main() {
})
root.AddCommand(at.EntryPoint(root))
root.AddCommand(completion.EntryPoint(root))
cli.Init(root)
if err := cli.Execute(root); err != nil {
cli.PrintError(err)