2022-08-25 06:08:04 +03:00
|
|
|
// License: GPLv3 Copyright: 2022, Kovid Goyal, <kovid at kovidgoyal.net>
|
|
|
|
|
2022-08-15 05:46:00 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"kitty/tools/cli"
|
2022-09-26 05:04:49 +03:00
|
|
|
"kitty/tools/cmd/completion"
|
2022-09-30 11:30:01 +03:00
|
|
|
"kitty/tools/cmd/tool"
|
2022-08-15 05:46:00 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2022-09-23 10:00:41 +03:00
|
|
|
root := cli.NewRootCommand()
|
|
|
|
root.ShortDescription = "Fast, statically compiled implementations for various kitty command-line tools"
|
|
|
|
root.Usage = "command [command options] [command args]"
|
2022-11-14 14:06:05 +03:00
|
|
|
root.Run = func(cmd *cli.Command, args []string) (int, error) {
|
|
|
|
cmd.ShowHelp()
|
|
|
|
return 0, nil
|
|
|
|
}
|
2022-09-06 10:47:15 +03:00
|
|
|
|
2022-09-30 11:30:01 +03:00
|
|
|
tool.KittyToolEntryPoints(root)
|
2022-09-26 05:04:49 +03:00
|
|
|
completion.EntryPoint(root)
|
2022-09-25 09:53:52 +03:00
|
|
|
|
2022-09-23 10:00:41 +03:00
|
|
|
root.Exec()
|
2022-08-15 05:46:00 +03:00
|
|
|
}
|