config

package
v0.0.0-...-356750c Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Summary = "Update or retrieve a configuration value"
	Name    = "config"
)
View Source
const UsageTmpl = `` /* 268-byte string literal not displayed */

Variables

View Source
var Stderr = struct {
	CouldNotEncodeConfig string
	ConfigValueNotSet    string
	InvalidConfigMethod  string
}{
	CouldNotEncodeConfig: "could not JSON encode user configuration settings, %v",
	ConfigValueNotSet:    "no value passed in for the setting, try quotes to enter an empty string",
	InvalidConfigMethod:  "invalid config method %v",
}
View Source
var UsageMessages = map[string]string{
	"config":      "Set or get a configuration value.",
	"config_help": "Print config usage help.",
	"help":        "display this help message.",
}
View Source
var UsageVars = map[string]string{}

Functions

func Init

func Init() *flag.FlagSet

func ParseInput

func ParseInput(ca []string) error

func Run

func Run(ca []string, appName string) error

Run Set or get a config setting.

Types

type Arguments

type Arguments struct {
	Setting string // config setting
	Method  string // Method to call
	Value   string // value to update config setting
}

Jump to

Keyboard shortcuts

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