Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIEnvironment ¶
type CIEnvironment string
CIEnvironment represents different CI/CD platforms
const ( // CI Platforms CIUnknown CIEnvironment = "unknown" CIGitHubActions CIEnvironment = "github_actions" CIGitLabCI CIEnvironment = "gitlab_ci" CIJenkins CIEnvironment = "jenkins" CITravisCI CIEnvironment = "travis_ci" CICircleCI CIEnvironment = "circle_ci" CIBuildkite CIEnvironment = "buildkite" CITeamCity CIEnvironment = "teamcity" CIBamboo CIEnvironment = "bamboo" CIAppVeyor CIEnvironment = "appveyor" CIAzurePipelines CIEnvironment = "azure_pipelines" CICodeBuild CIEnvironment = "codebuild" CIDrone CIEnvironment = "drone" CISemaphore CIEnvironment = "semaphore" CIGeneric CIEnvironment = "generic_ci" )
type Detector ¶
type Detector struct{}
Detector handles environment detection
func (*Detector) DetectEnvironment ¶
func (d *Detector) DetectEnvironment() *EnvironmentInfo
DetectEnvironment detects the current environment and its capabilities
func (*Detector) GetRecommendedDisplayMode ¶
func (d *Detector) GetRecommendedDisplayMode(info *EnvironmentInfo) string
GetRecommendedDisplayMode returns the recommended display mode for the environment
func (*Detector) ShouldBeQuiet ¶
ShouldBeQuiet returns true if output should be minimal/suppressed
type EnvironmentInfo ¶
type EnvironmentInfo struct {
IsCI bool
CIEnvironment CIEnvironment
SupportColors bool
SupportInteractive bool
SupportEmojis bool
TerminalType string
ShouldSuppressOutput bool
}
EnvironmentInfo contains information about the current environment
Click to show internal directories.
Click to hide internal directories.