cli

package
Version: v0.0.0-...-b3562de Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// CPUProfileFilePathEnvKey ...
	CPUProfileFilePathEnvKey = "BITRISE_MACHINE_CPU_PROFILE_FILEPATH"

	// WorkdirEnvKey ...
	WorkdirEnvKey = "BITRISE_MACHINE_WORKDIR"
	// WorkdirKey ...
	WorkdirKey = "workdir"

	// LogLevelEnvKey ...
	LogLevelEnvKey = "LOGLEVEL"
	// LogLevelKey ...
	LogLevelKey = "loglevel"

	// EnvironmentParamKey ...
	EnvironmentParamKey = "environment"

	// ConfigTypeIDParamKey ...
	ConfigTypeIDParamKey = "config-type-id"

	// HelpKey ...
	HelpKey = "help"

	// VersionKey ...
	VersionKey = "version"

	// TimeoutFlagKey ...
	TimeoutFlagKey = "timeout"
	// AbortCheckURLFlagKey ...
	AbortCheckURLFlagKey = "abort-check-url"
	// LogFormatFlagKey ...
	LogFormatFlagKey = "logformat"
	// ForceFlagKey ...
	ForceFlagKey = "force"

	// FullFlagKey ...
	FullFlagKey = "full"
)
View Source
const (

	// LogFormatJSON ...
	LogFormatJSON = "json"
)

Variables

View Source
var (
	// MachineWorkdir ...
	MachineWorkdir = freezable.String{}
	// MachineParamsAdditionalEnvs ...
	MachineParamsAdditionalEnvs = freezable.StringSlice{}
	// MachineConfigTypeID ...
	MachineConfigTypeID = freezable.String{}
)

Functions

func Run

func Run()

Run the CLI

Types

type AbortCheckModel

type AbortCheckModel struct {
	StatusStr    string `json:"status"`
	IsAborted    bool   `json:"is_aborted"`
	ErrorMessage string `json:"error_msg"`
}

AbortCheckModel ...

type LogBuffer

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

LogBuffer ...

func (*LogBuffer) Read

func (buff *LogBuffer) Read(n int) []byte

func (*LogBuffer) ReadRunes

func (buff *LogBuffer) ReadRunes(n int) (string, bool)

ReadRunes ...

func (*LogBuffer) Write

func (buff *LogBuffer) Write(p []byte) (n int, err error)

Write ...

type LogChunkModel

type LogChunkModel struct {
	Data string `json:"data"`
	Pos  int64  `json:"pos"`
}

LogChunkModel ...

type LogSummaryModel

type LogSummaryModel struct {
	GeneratedChunkCount int64 `json:"generated_chunk_count"`
}

LogSummaryModel ...

type RunResults

type RunResults struct {
	IsTimeoutError       bool
	IsUserRequestedAbort bool
	RunError             error
}

RunResults ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL