Documentation
¶
Index ¶
- type Presenter
- func (p *Presenter) Advice(format string, a ...any)
- func (p *Presenter) Detail(format string, a ...any)
- func (p *Presenter) Err() io.Writer
- func (p *Presenter) Error(format string, a ...any)
- func (p *Presenter) Header(format string, a ...any)
- func (p *Presenter) Highlight(text string) string
- func (p *Presenter) Info(format string, a ...any)
- func (p *Presenter) InfoPrefixOnly()
- func (p *Presenter) Newline()
- func (p *Presenter) Out() io.Writer
- func (p *Presenter) PromptForConfirmation(prompt string) (bool, error)
- func (p *Presenter) PromptForInput(prompt string) (string, error)
- func (p *Presenter) Separator()
- func (p *Presenter) Step(format string, a ...any)
- func (p *Presenter) Success(format string, a ...any)
- func (p *Presenter) Summary(format string, a ...any)
- func (p *Presenter) Warning(format string, a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Presenter ¶
type Presenter struct {
// contains filtered or unexported fields
}
Presenter handles structured writing to standard output and standard error, and reading standardized user input, mimicking the Pulumi CLI style.
func NewPresenter ¶
NewPresenter creates a new Console instance with Pulumi-like color support. Color support is automatically detected and disabled if the terminal doesn't support it or if the NO_COLOR environment variable is set. If outW, errW, or inR are nil, they default to os.Stdout, os.Stderr, and os.Stdin respectively.
func (*Presenter) InfoPrefixOnly ¶
func (p *Presenter) InfoPrefixOnly()
func (*Presenter) PromptForConfirmation ¶
func (*Presenter) PromptForInput ¶
Click to show internal directories.
Click to hide internal directories.