cprint

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(cmd *cobra.Command, err error, verbose bool)

Standalone functions

func GreenPrint

func GreenPrint(message string)

func Info

func Info(message string)

func OrganizationInfo

func OrganizationInfo(orgID string, verbose bool)

func Print

func Print(message string)

func PrintDetail

func PrintDetail(label, value string)

func PrintHeader

func PrintHeader(message string)

func PrintNorm

func PrintNorm(message string)

func Prompt

func Prompt(message string, verbose bool)

func Success

func Success(message string)

func Warning

func Warning(message string)

func YellowPrint

func YellowPrint(message string)

Types

type CPrinter added in v0.12.6

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

CPrinter holds the configuration for printing

func NewCPrinter added in v0.12.6

func NewCPrinter(verbose bool) *CPrinter

NewCPrinter creates a new CPrinter instance

func (*CPrinter) Error added in v0.12.6

func (p *CPrinter) Error(cmd *cobra.Command, err error)

CPrinter methods

func (*CPrinter) GreenPrint added in v0.12.6

func (p *CPrinter) GreenPrint(message string)

func (*CPrinter) Info added in v0.12.6

func (p *CPrinter) Info(message string)

func (*CPrinter) OrganizationInfo added in v0.12.6

func (p *CPrinter) OrganizationInfo(orgID string)

func (*CPrinter) Print added in v0.12.6

func (p *CPrinter) Print(message string)

func (*CPrinter) PrintDetail added in v0.12.6

func (p *CPrinter) PrintDetail(label, value string)

func (*CPrinter) PrintHeader added in v0.12.6

func (p *CPrinter) PrintHeader(message string)

func (*CPrinter) PrintNorm added in v0.12.6

func (p *CPrinter) PrintNorm(message string)

func (*CPrinter) PrintVerbose added in v0.16.0

func (p *CPrinter) PrintVerbose(message string)

func (*CPrinter) Prompt added in v0.12.6

func (p *CPrinter) Prompt(message string)

func (*CPrinter) Success added in v0.12.6

func (p *CPrinter) Success(message string)

func (*CPrinter) Warning added in v0.12.6

func (p *CPrinter) Warning(message string)

func (*CPrinter) YellowPrint added in v0.12.6

func (p *CPrinter) YellowPrint(message string)

Jump to

Keyboard shortcuts

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