xcodecommand

package
v2.0.0-alpha.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	RawOut   []byte
	ExitCode int
}

Output is the direct output of the xcodebuild command, unchanged by log formatters

type RawXcodeCommandRunner

type RawXcodeCommandRunner struct {
	// contains filtered or unexported fields
}

RawXcodeCommandRunner is an xcodebuild runner that uses no additional log formatter

func (*RawXcodeCommandRunner) CheckInstall

func (c *RawXcodeCommandRunner) CheckInstall() (*version.Version, error)

CheckInstall does nothing as no additional log formatter is used

func (*RawXcodeCommandRunner) Run

func (c *RawXcodeCommandRunner) Run(workDir string, args []string, _ []string) (Output, error)

Run runs xcodebuild using no additional log formatter

type Runner

type Runner interface {
	CheckInstall() (*version.Version, error)
	Run(workDir string, xcodebuildOpts []string, logFormatterOpts []string) (Output, error)
}

Runner abstarcts an xcodebuild command runner, it can use any log formatter

func NewRawCommandRunner

func NewRawCommandRunner(logger log.Logger, commandFactory command.Factory) Runner

NewRawCommandRunner creates a new RawXcodeCommandRunner

func NewXcbeautifyRunner

func NewXcbeautifyRunner(logger log.Logger, commandFactory command.Factory) Runner

NewXcbeautifyRunner returns a new xcbeautify runner

func NewXcprettyCommandRunner

func NewXcprettyCommandRunner(logger log.Logger, commandFactory command.Factory, pathChecker pathutil.PathChecker, fileManager fileutil.FileManager, rubyCommandFactory ruby.CommandFactory, rubyEnv ruby.Environment) Runner

NewXcprettyCommandRunner crates a new XcprettyCommandRunner

type XcbeautifyRunner

type XcbeautifyRunner struct {
	// contains filtered or unexported fields
}

XcbeautifyRunner is a xcodebuild runner that uses xcbeautify as log formatter

func (*XcbeautifyRunner) CheckInstall

func (c *XcbeautifyRunner) CheckInstall() (*version.Version, error)

CheckInstall checks if xcbeautify is on the PATH and returns its version

func (*XcbeautifyRunner) Run

func (c *XcbeautifyRunner) Run(workDir string, xcodebuildArgs []string, xcbeautifyArgs []string) (Output, error)

Run runs xcodebuild using xcbeautify as an output formatter

type XcprettyCommandRunner

type XcprettyCommandRunner struct {
	// contains filtered or unexported fields
}

XcprettyCommandRunner is an xcodebuild command runner that uses xcpretty as log formatter

func (*XcprettyCommandRunner) CheckInstall

func (c *XcprettyCommandRunner) CheckInstall() (*version.Version, error)

CheckInstall checks if xcpretty is isntalled, if not installs it. Returns its version.

func (*XcprettyCommandRunner) Run

func (c *XcprettyCommandRunner) Run(workDir string, xcodebuildArgs []string, xcprettyArgs []string) (Output, error)

Run runs xcodebuild using xcpretty as a log formatter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL