mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 02:57:19 +03:00
25 lines
561 B
Go
25 lines
561 B
Go
// License: GPLv3 Copyright: 2022, Kovid Goyal, <kovid at kovidgoyal.net>
|
|
|
|
package main
|
|
|
|
import (
|
|
"kitty/tools/cli"
|
|
"kitty/tools/cmd/completion"
|
|
"kitty/tools/cmd/tool"
|
|
)
|
|
|
|
func main() {
|
|
root := cli.NewRootCommand()
|
|
root.ShortDescription = "Fast, statically compiled implementations for various kitty command-line tools"
|
|
root.Usage = "command [command options] [command args]"
|
|
root.Run = func(cmd *cli.Command, args []string) (int, error) {
|
|
cmd.ShowHelp()
|
|
return 0, nil
|
|
}
|
|
|
|
tool.KittyToolEntryPoints(root)
|
|
completion.EntryPoint(root)
|
|
|
|
root.Exec()
|
|
}
|