mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-04 22:03:48 +02:00
Make kitten main re-useable
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"kitty/tools/cmd/tool"
|
||||
)
|
||||
|
||||
func main() {
|
||||
func KittenMain(args ...string) {
|
||||
krm := os.Getenv("KITTY_KITTEN_RUN_MODULE")
|
||||
os.Unsetenv("KITTY_KITTEN_RUN_MODULE")
|
||||
switch krm {
|
||||
@@ -31,5 +31,9 @@ func main() {
|
||||
tool.KittyToolEntryPoints(root)
|
||||
completion.EntryPoint(root)
|
||||
|
||||
root.Exec()
|
||||
root.Exec(args...)
|
||||
}
|
||||
|
||||
func main() {
|
||||
KittenMain()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user