Drop another dependency

This commit is contained in:
Kovid Goyal
2022-08-22 21:30:00 +05:30
parent cf287015de
commit eb4ee13f73
5 changed files with 9 additions and 7 deletions

View File

@@ -10,13 +10,13 @@ import (
"strings"
"unicode"
"github.com/mattn/go-isatty"
"github.com/mattn/go-runewidth"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"golang.org/x/sys/unix"
"kitty"
"kitty/tools/tty"
"kitty/tools/utils"
)
@@ -488,7 +488,7 @@ func Init(root *cobra.Command) {
if kitty.VCSRevision != "" {
vs = vs + " (" + kitty.VCSRevision + ")"
}
stdout_is_terminal = isatty.IsTerminal(os.Stdout.Fd())
stdout_is_terminal = tty.IsTerminal(os.Stdout.Fd())
RootCmd = root
root.Version = vs
root.SetUsageFunc(func(cmd *cobra.Command) error { return show_usage(cmd, false) })