Avoid spinning up the python interpreter just for running a shebang

This commit is contained in:
Kovid Goyal
2025-03-20 11:36:59 +05:30
parent b853f3a986
commit ca1555d12e
4 changed files with 81 additions and 27 deletions

View File

@@ -99,13 +99,13 @@ func KittyToolEntryPoints(root *cli.Command) {
return
},
})
// __confirm_and_run_shebang__
// __shebang__
root.AddSubCommand(&cli.Command{
Name: "__confirm_and_run_shebang__",
Name: "__shebang__",
Hidden: true,
OnlyArgsAllowed: true,
Run: func(cmd *cli.Command, args []string) (rc int, err error) {
return confirm_and_run_shebang(args)
return run_shebang(args)
},
})
// __convert_image__