feat(branding): show the FWS fork version in --version
Display the fork name, version and maintainer beneath the upstream kitty version so this build is identifiable without hiding upstream credit.
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -424,8 +424,10 @@ handle_fast_commandline(CLISpec *cli_spec, const char *instance_group_prefix) {
|
||||
if (get_bool_cli_val(cli_spec, "version")) {
|
||||
if (isatty(STDOUT_FILENO)) {
|
||||
printf("\x1b[3mkitty\x1b[23m \x1b[32m%s\x1b[39m created by \x1b[1;34mKovid Goyal\x1b[22;39m\n", KITTY_VERSION);
|
||||
printf("\x1b[3mfws-kitty\x1b[23m \x1b[32m0.1.6\x1b[39m by \x1b[1;34mBlackAngelTV\x1b[22;39m\n");
|
||||
} else {
|
||||
printf("kitty %s created by Kovid Goyal\n", KITTY_VERSION);
|
||||
printf("fws-kitty 0.1.6 by BlackAngelTV\n");
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
||||
+2
-1
@@ -30,7 +30,8 @@ func ShowError(err error) {
|
||||
}
|
||||
|
||||
func (self *Command) version_string(formatter *markup.Context) string {
|
||||
return fmt.Sprintln(formatter.Italic(self.CommandStringForUsage()), formatter.Opt(kitty.VersionString+kitty.VersionSuffix), "created by", formatter.Title("Kovid Goyal"))
|
||||
return fmt.Sprintln(formatter.Italic(self.CommandStringForUsage()), formatter.Opt(kitty.VersionString+kitty.VersionSuffix), "created by", formatter.Title("Kovid Goyal")) +
|
||||
fmt.Sprintln(formatter.Italic("fws-kitty"), formatter.Opt("0.1.6"), "by", formatter.Title("BlackAngelTV"))
|
||||
}
|
||||
|
||||
func (self *Command) ShowVersion() {
|
||||
|
||||
Reference in new issue
Block a user