Merge pull request #6421 from cli/go-gh-term
Dogfood term package from go-gh
This commit is contained in:
commit
9ec2107cc6
13 changed files with 96 additions and 393 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue