mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 03:12:37 +03:00
27 lines
533 B
Go
27 lines
533 B
Go
// License: GPLv3 Copyright: 2022, Kovid Goyal, <kovid at kovidgoyal.net>
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"kitty/tools/cli"
|
|
"kitty/tools/cmd/at"
|
|
)
|
|
|
|
func main() {
|
|
var root = cli.CreateCommand(&cobra.Command{
|
|
Use: "kitty-tool command [command options] [command args]",
|
|
Short: "Fast, statically compiled implementations for various kitty command-line tools",
|
|
})
|
|
root.AddCommand(at.EntryPoint(root))
|
|
|
|
cli.Init(root)
|
|
if err := cli.Execute(root); err != nil {
|
|
cli.PrintError(err)
|
|
os.Exit(1)
|
|
}
|
|
}
|