mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Allow using defer in KittenMain
This commit is contained in:
parent
ca0ff68d8e
commit
ba96fa06fe
3 changed files with 19 additions and 26 deletions
|
|
@ -565,13 +565,6 @@ func (self *Command) ExecArgs(args []string) (exit_code int) {
|
|||
return
|
||||
}
|
||||
|
||||
func (self *Command) Exec(args ...string) {
|
||||
if len(args) == 0 {
|
||||
args = os.Args
|
||||
}
|
||||
os.Exit(self.ExecArgs(args))
|
||||
}
|
||||
|
||||
func (self *Command) GetCompletions(argv []string, init_completions func(*Completions)) *Completions {
|
||||
ans := NewCompletions()
|
||||
if init_completions != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue