mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Start work on implementing edit-in-kitty in kitty-tool
This commit is contained in:
@@ -78,7 +78,7 @@ func update_self(version string) (err error) {
|
||||
return unix.Exec(exe, []string{"kitty-tool", "--version"}, os.Environ())
|
||||
}
|
||||
|
||||
func EntryPoint(root *cli.Command) {
|
||||
func EntryPoint(root *cli.Command) *cli.Command {
|
||||
sc := root.AddSubCommand(&cli.Command{
|
||||
Name: "update-self",
|
||||
Usage: "update-self [options ...]",
|
||||
@@ -101,4 +101,5 @@ func EntryPoint(root *cli.Command) {
|
||||
Default: "latest",
|
||||
Help: "The version to fetch. The special words :code:`latest` and :code:`nightly` fetch the latest stable and nightly release respectively. Other values can be, for example: 0.27.1.",
|
||||
})
|
||||
return sc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user