cli

package
v0.0.0-...-ab855bc Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cliStructReference interface{}, options RunOptions)

func RunWithArguments

func RunWithArguments(cliStructReference interface{}, options RunOptions, customArgs ...interface{})

Types

type ApplicationType

type ApplicationType = int
const (
	Daemon ApplicationType = iota
	Utility
)

type LogConfigFile

type LogConfigFile struct {
	ApplicationName string
	LogDirectory    string
}

type LogFileString

type LogFileString string

func (LogFileString) AfterApply

func (o LogFileString) AfterApply(log *clog.Log) error

type LogLevelString

type LogLevelString string

func (LogLevelString) AfterApply

func (o LogLevelString) AfterApply(log *clog.Log) error

type Options

type Options struct {
	LogLevel LogLevelString `help:"the log level"`
	LogFile  LogFileString  `help:"log output file" default:""`
}

type RunOptions

type RunOptions struct {
	Version         string
	ApplicationType ApplicationType
	LogConfig       interface{}
}

Jump to

Keyboard shortcuts

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