Categorygithub.com/alswl/aios
modulepackage
0.1.0-beta.1
Repository: https://github.com/alswl/aios.git
Documentation: pkg.go.dev

# README

aios

Abstract IO Streams(fork from github.com/cli/cli)

How to use

// in production
import "github.com/alswl/aios"

ios := aios.System()

// in testing
import "github.com/alswl/aios"

ios, stdin, stdout, stderr := aios.Test()

# Functions

FromEnv initializes a GHTerm from [os.Stdout] and environment variables: - GH_FORCE_TTY - NO_COLOR - CLICOLOR - CLICOLOR_FORCE - TERM - COLORTERM.
IsColorDisabled returns true if environment variables NO_COLOR or CLICOLOR prohibit usage of color codes in terminal output.
IsColorForced returns true if environment variable CLICOLOR_FORCE is set to force colored terminal output.
IsTerminal reports whether a file descriptor is connected to a terminal.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Structs

No description provided by the author
ErrClosedPagerPipe is the error returned when writing to a pager that has been closed.
GHTerm represents information about the terminal that a process is connected to.
No description provided by the author