cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigProperty

func AddConfigProperty(property, value string)

AddConfigProperty adds a property and its value to the properties store.

func ConfigPath

func ConfigPath(configType string) (string, error)

ConfigPath returns the absolute path for the given configType.

func GetConfigProperty

func GetConfigProperty(property string) string

GetConfigProperty returns the value for the given property.

func ParseFlags

func ParseFlags() error

ParseFlags parses the command-line flags.

func SetupConfig

func SetupConfig() error

SetupConfig checks for the config directory, and creates one if it doesn't exist.

Types

type CmdOptions

type CmdOptions struct {
	Page             string
	Host, User, Pass string
	Version          bool
}

CmdOptions stores command-line options.

Jump to

Keyboard shortcuts

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