cli

package
Version: v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ArgumentUnset = "unset"

Variables

View Source
var ErrMultipleBadgeParams = errors.New("cannot use flags -param and -params together")

Functions

func Main

func Main()

Types

type Arguments

type Arguments struct {
	BadgeParameters BadgeParamFlags
	Fonts           FontFlags
	Output          string
	ParamsFile      string
	Template        string
	Theme           string
}

func ParseArguments

func ParseArguments(arguments []string) (*Arguments, error)

type BadgeParamFlags

type BadgeParamFlags map[string]interface{}

func (BadgeParamFlags) Set

func (f BadgeParamFlags) Set(v string) error

func (BadgeParamFlags) String

func (f BadgeParamFlags) String() string

type FontFlags

type FontFlags map[string]string

func (FontFlags) Set

func (f FontFlags) Set(v string) error

func (FontFlags) String

func (f FontFlags) String() string

Jump to

Keyboard shortcuts

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