Merge pull request #6421 from cli/go-gh-term

Dogfood term package from go-gh
This commit is contained in:
Mislav Marohnić 2022-11-03 13:02:24 +01:00 committed by GitHub
commit 9ec2107cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 96 additions and 393 deletions

View file

@ -64,10 +64,6 @@ func mainRun() exitCode {
cmdFactory := factory.New(buildVersion)
stderr := cmdFactory.IOStreams.ErrOut
if spec := os.Getenv("GH_FORCE_TTY"); spec != "" {
cmdFactory.IOStreams.ForceTerminal(spec)
}
if !cmdFactory.IOStreams.ColorEnabled() {
surveyCore.DisableColor = true
ansi.DisableColors(true)