commonw

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package commonw contains miscellaneous common output writer functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VerboseOpt

type VerboseOpt struct {
	Key          string `json:"key"`
	Usage        string `json:"usage"`
	Type         string `json:"type"`
	IsSet        bool   `json:"is_set"`
	DefaultValue any    `json:"default_value"`
	Value        any    `json:"value"`
	// FIXME: Append Flag?
	Help string `json:"help"`
}

VerboseOpt is a verbose realization of an options.Opt value. This is used primarily to print metadata about the opt.

func NewVerboseOpt

func NewVerboseOpt(opt options.Opt, o options.Options) VerboseOpt

NewVerboseOpt returns a VerboseOpt built from opt and o.

Jump to

Keyboard shortcuts

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