output

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsColorSupported

func IsColorSupported() bool

func IsStderrColorSupported

func IsStderrColorSupported() bool

func ShouldUseColors

func ShouldUseColors(forceColors bool, noColors bool) bool

Types

type CSVFormatter

type CSVFormatter struct{}

func NewCSVFormatter

func NewCSVFormatter() *CSVFormatter

func (*CSVFormatter) FormatAccountInfo

func (f *CSVFormatter) FormatAccountInfo(info *inwx.AccountInfo) string

func (*CSVFormatter) FormatBackupEntries

func (f *CSVFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string

func (*CSVFormatter) FormatDNSRecords

func (f *CSVFormatter) FormatDNSRecords(records []inwx.DNSRecord) string

func (*CSVFormatter) FormatDomains

func (f *CSVFormatter) FormatDomains(domains []inwx.Domain) string

type JSONFormatter

type JSONFormatter struct{}

func NewJSONFormatter

func NewJSONFormatter() *JSONFormatter

func (*JSONFormatter) FormatAccountInfo

func (f *JSONFormatter) FormatAccountInfo(info *inwx.AccountInfo) string

func (*JSONFormatter) FormatBackupEntries

func (f *JSONFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string

func (*JSONFormatter) FormatDNSRecords

func (f *JSONFormatter) FormatDNSRecords(records []inwx.DNSRecord) string

func (*JSONFormatter) FormatDomains

func (f *JSONFormatter) FormatDomains(domains []inwx.Domain) string

type TableFormatter

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

func NewTableFormatter

func NewTableFormatter() *TableFormatter

func (*TableFormatter) FormatAccountInfo

func (f *TableFormatter) FormatAccountInfo(info *inwx.AccountInfo) string

func (*TableFormatter) FormatBackupEntries

func (f *TableFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string

func (*TableFormatter) FormatDNSRecords

func (f *TableFormatter) FormatDNSRecords(records []inwx.DNSRecord) string

func (*TableFormatter) FormatDomains

func (f *TableFormatter) FormatDomains(domains []inwx.Domain) string

func (*TableFormatter) SetColors

func (f *TableFormatter) SetColors(enabled bool)

type YAMLFormatter

type YAMLFormatter struct{}

func NewYAMLFormatter

func NewYAMLFormatter() *YAMLFormatter

func (*YAMLFormatter) FormatAccountInfo

func (f *YAMLFormatter) FormatAccountInfo(info *inwx.AccountInfo) string

func (*YAMLFormatter) FormatBackupEntries

func (f *YAMLFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string

func (*YAMLFormatter) FormatDNSRecords

func (f *YAMLFormatter) FormatDNSRecords(records []inwx.DNSRecord) string

func (*YAMLFormatter) FormatDomains

func (f *YAMLFormatter) FormatDomains(domains []inwx.Domain) string

Jump to

Keyboard shortcuts

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