Documentation ¶
Index ¶
Constants ¶
View Source
const (
Identifier string = "printer"
)
Variables ¶
View Source
var CreateFakePrinter = func() *fakePrinter {
return &fakePrinter{}
}
View Source
var CreateFakePrinterPlainer = func() *fakePrinterPlainer {
return &fakePrinterPlainer{}
}
View Source
var CreateFakePrinterSpinner = func() *fakePrinterSpinner {
return &fakePrinterSpinner{}
}
Functions ¶
This section is empty.
Types ¶
type CommandFolderItemStatusTemplate ¶
type CommandFolderItemStatusTemplate struct { Name string IsValid bool MissingInstructionFile bool InvalidInstructionFormat bool }
func (*CommandFolderItemStatusTemplate) CheckValidity ¶
func (as *CommandFolderItemStatusTemplate) CheckValidity() bool
type ConfigViewTemplateItem ¶
type Printer ¶
type Printer interface { PrintAnchorBanner() PrintAnchorVersion(version string) PrintCommandFolderItemStatus(commandFolderItemsStatus []*CommandFolderItemStatusTemplate) PrintConfiguration(cfgFilePath string, cfgText string) PrintMissingCommand(name string) PrintMissingInstructions() PrintEmptyLines(count int) PrintSuccess(message string) PrintWarning(message string) PrintError(message string) PrepareRunActionPlainer(actionId string) PrinterPlainer PrepareRunActionSpinner(actionId string, scriptOutputPath string) PrinterSpinner PrepareReadRemoteHeadCommitHashSpinner(url string, branch string) PrinterSpinner PrepareCloneRepositorySpinner(url string, branch string) PrinterSpinner PrepareResetToRevisionSpinner(revision string) PrinterSpinner }
type PrinterPlainer ¶
type PrinterPlainer interface { Start() StopOnSuccess() StopOnFailure(err error) }
func NewNoOpPlainer ¶ added in v0.8.0
func NewNoOpPlainer() PrinterPlainer
func NewPlainer ¶
func NewPlainer(runMsg string, successMsg string, failureMsg string) PrinterPlainer
type PrinterSpinner ¶
type PrinterSpinner interface { Spin() StopOnSuccess() StopOnSuccessWithCustomMessage(message string) StopOnFailure(err error) StopOnFailureWithCustomMessage(message string) }
func NewNoOpSpinner ¶ added in v0.8.0
func NewNoOpSpinner() PrinterSpinner
func NewSpinner ¶
func NewSpinner(runMsg string, successMsg string, failureMsgFormat string) PrinterSpinner
Click to show internal directories.
Click to hide internal directories.