Documentation ¶
Index ¶
- Constants
- Variables
- func FormatTime(ts *time.Time) string
- func GetValidInput[T any](ctx context.Context, initialValue string, validator Validator[T]) (T, error)
- func MakeJSON(ctx context.Context, out interface{}, pretty bool) ([]byte, error)
- func MakeJSONFromInterface(ctx context.Context, data interface{}, pretty bool) ([]byte, error)
- func MakeJSONFromProto(ctx context.Context, m proto.Message, pretty bool) ([]byte, error)
- func WithTransposeTable() outputOption
- type Manager
- type PreText
- type TablePrint
- type TableSort
- type Validator
- type WideTablePrint
Constants ¶
View Source
const JSONPretty = "json-pretty"
View Source
const Unchecked = ""
Variables ¶
View Source
var Checkmark = pterm.Green("✓")
View Source
var InputNeeded = pterm.PrefixPrinter{ MessageStyle: &pterm.Style{pterm.FgMagenta}, Prefix: pterm.Prefix{ Style: &pterm.Style{pterm.BgLightMagenta}, Text: "INPUT NEEDED", }, }
Functions ¶
func FormatTime ¶
func GetValidInput ¶ added in v0.0.6
func MakeJSONFromInterface ¶ added in v0.0.13
func MakeJSONFromProto ¶ added in v0.0.13
func WithTransposeTable ¶ added in v0.0.7
func WithTransposeTable() outputOption
Types ¶
type TablePrint ¶
type TableSort ¶ added in v0.0.6
type TableSort interface { // Columns to sort by ordered by priority. OrderedSortColumns() []string }
type WideTablePrint ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.