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
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
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)