presenter

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildIconSuccess = "✓"
	BuildIconFailed  = "✗"
)

Status icons for build command output

View Source
const (
	IconSuccess  = "✓"
	IconFailed   = "✗"
	IconNoChange = "○"
)

Status icons for format command output

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthPresenter added in v0.16.0

type AuthPresenter interface {
	Progress(output *port.AuthUseCaseOutputData)
	Complete(output *port.AuthUseCaseOutputData)
	Suspend(err error)
	IsCancelled() bool
}

func NewAuthPresenter added in v0.16.0

func NewAuthPresenter(i do.Injector) (AuthPresenter, error)

type BuildCommandPresenter added in v0.14.4

type BuildCommandPresenter interface {
	Progress(output *port.BuildCommandUseCaseOutputData)
	StopProgress()
	Complete(output *port.BuildCommandUseCaseOutputData)
	Suspend(err error)
	StartBuildProgress(totalFiles int)
	UpdateBuildProgress(filename string, fileId string)
	StopBuildProgress()
	IsBuildCancelled() bool
	Summary(downloadedFiles []FileInfo, failedFiles []FileInfo, buildError error)
}

func NewBuildCommandPresenter added in v0.14.4

func NewBuildCommandPresenter(i do.Injector) (BuildCommandPresenter, error)

type CleanCommandPresenter added in v0.14.4

type CleanCommandPresenter interface {
	Progress(output *port.CleanCommandUseCaseOutputData)
	StopProgress()
	Complete(output *port.CleanCommandUseCaseOutputData)
	Suspend(err error)
}

func NewCleanCommandPresenter added in v0.14.4

func NewCleanCommandPresenter(i do.Injector) (CleanCommandPresenter, error)

type ConsolePresenter

type ConsolePresenter interface {
	Progress(message string)
	StopProgress()
	Warning(err error)
	Complete(message string)
	Suspend(err error)
	IsCancelled() bool
}

func NewConsolePresenter added in v0.16.0

func NewConsolePresenter(_ do.Injector) (ConsolePresenter, error)

NewConsolePresenter creates a new ConsolePresenter for DI registration.

type DeployCommandPresenter added in v0.14.4

type DeployCommandPresenter interface {
	Progress(output *port.DeployCommandUseCaseOutputData)
	StopProgress()
	Complete(output *port.DeployCommandUseCaseOutputData)
	Suspend(err error)
}

func NewDeployCommandPresenter added in v0.14.4

func NewDeployCommandPresenter(i do.Injector) (DeployCommandPresenter, error)

type DoctorPresenter added in v0.16.0

type DoctorPresenter interface {
	Show(output *port.DoctorUseCaseOutputData)
}

func NewDoctorPresenter added in v0.16.0

func NewDoctorPresenter(_ do.Injector) (DoctorPresenter, error)

type FileInfo added in v0.16.0

type FileInfo struct {
	Name string
	Id   string
}

FileInfo holds file name and ID for summary display

type FormatCommandPresenter added in v0.16.0

type FormatCommandPresenter interface {
	Progress(output *port.FormatCommandUseCaseOutputData)
	StopProgress()
	Complete(output *port.FormatCommandUseCaseOutputData)
	Suspend(err error)
	StartFormatProgress(totalFiles int)
	UpdateFormatProgress(output *port.FormatCommandUseCaseOutputData)
	StopFormatProgress()
	IsFormatCancelled() bool
	Summary(successCount, noChangeCount, failedCount int, updatedFiles, failedFiles []FileInfo)
}

func NewFormatCommandPresenter added in v0.16.0

func NewFormatCommandPresenter(i do.Injector) (FormatCommandPresenter, error)

type InitCommandPresenter added in v0.14.4

type InitCommandPresenter interface {
	Progress(output port.InitUseCaseOutputData)
	StopProgress()
	Complete(output port.InitUseCaseOutputData)
	Suspend(err error)
	IsCancelled() bool
}

type InitSettingPresenter added in v0.14.0

type InitSettingPresenter interface {
	InitCommandPresenter
	Prompt(ch chan<- interface{}, output *port.InitSettingUseCaseOutputData)
}

func NewInitSettingPresenter added in v0.14.0

func NewInitSettingPresenter(i do.Injector) (InitSettingPresenter, error)

type RootCommandPresenter added in v0.14.4

type RootCommandPresenter interface {
	Complete(output *port.RootCommandUseCaseOutputData)
	Suspend(err error)
}

func NewRootCommandPresenter added in v0.14.4

func NewRootCommandPresenter(i do.Injector) (RootCommandPresenter, error)

type UpdateCommandPresenter added in v0.14.4

type UpdateCommandPresenter interface {
	Progress(output *port.UpdateCommandUseCaseOutputData)
	StopProgress()
	Complete(output *port.UpdateCommandUseCaseOutputData)
	Suspend(err error)
}

func NewUpdateCommandPresenter added in v0.14.4

func NewUpdateCommandPresenter(i do.Injector) (UpdateCommandPresenter, error)

Directories

Path Synopsis
tui

Jump to

Keyboard shortcuts

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