Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadWithLimit ¶
ReadWithLimit reads from reader with maximum size enforcement.
func ResolveInput ¶
ResolveInput reads input from file or stdin with size limits and security checks.
Types ¶
type CLIPrinter ¶
type CLIPrinter struct {
// contains filtered or unexported fields
}
CLIPrinter implements Printer with support for multiple output formats.
func NewCLIPrinter ¶
func NewCLIPrinter(out, errOut io.Writer, format Format) *CLIPrinter
NewCLIPrinter creates a printer with specified output writers and format.
func (*CLIPrinter) Print ¶
func (p *CLIPrinter) Print(v any)
Print outputs data in the configured format (JSON, YAML, or table).
func (*CLIPrinter) PrintError ¶
func (p *CLIPrinter) PrintError(err error)
PrintError outputs errors in human-readable or JSON format.
type Codec ¶
type Codec interface {
Encode(txID string, tx *applicationpb.Tx) ([]byte, error)
Decode(data []byte) (txID string, tx *applicationpb.Tx, err error)
}
Codec handles encoding and decoding of transactions for CLI I/O.
Click to show internal directories.
Click to hide internal directories.