output

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package output is responsible for formatting the final output / errors the user sees in the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(err error, format string, a ...any) string

FormatError outputs the error with proper formatting for CLI. Produces: | | Error: formatted message here... | | Code: gRPC code here (if one). | | Error here... |

Types

type PipelineRenderer

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

PipelineRenderer displays the pipeline status in realtime

func NewPipelineRenderer

func NewPipelineRenderer(ui terminal.UI, client *client.Client) *PipelineRenderer

NewPipelineRenderer returns a new PipelineRenderer

func (*PipelineRenderer) Render

func (r *PipelineRenderer) Render(ctx context.Context, pipelineID string) error

Render renders the pipeline status in realtime

Jump to

Keyboard shortcuts

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