This commit is contained in:
Kovid Goyal
2022-09-30 14:00:01 +05:30
parent 6b04c42730
commit 654bd23109
3 changed files with 21 additions and 5 deletions

View File

@@ -4,8 +4,8 @@ package main
import (
"kitty/tools/cli"
"kitty/tools/cmd/at"
"kitty/tools/cmd/completion"
"kitty/tools/cmd/tool"
)
func main() {
@@ -13,9 +13,7 @@ func main() {
root.ShortDescription = "Fast, statically compiled implementations for various kitty command-line tools"
root.Usage = "command [command options] [command args]"
// @
at.EntryPoint(root)
// __complete__
tool.KittyToolEntryPoints(root)
completion.EntryPoint(root)
root.Exec()

17
tools/cmd/tool/main.go Normal file
View File

@@ -0,0 +1,17 @@
// License: GPLv3 Copyright: 2022, Kovid Goyal, <kovid at kovidgoyal.net>
package tool
import (
"fmt"
"kitty/tools/cli"
"kitty/tools/cmd/at"
)
var _ = fmt.Print
func KittyToolEntryPoints(root *cli.Command) {
// @
at.EntryPoint(root)
}