app

package
v0.0.0-...-d06d904 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSrvConfig

func GetSrvConfig() godoo.ServerConfigVals

Sets up server context & logger in a similar way to SetupCli()

func RunCliApp

func RunCliApp(args []string, w io.Writer) int

func SetConfigVals

func SetConfigVals()

Set default configuration values and read from env file

func SetupCli

func SetupCli(osArgs []string) error

Sets up the operating context of the cli client application based on user configuration options. Also starts the logger.

Types

type CliContext

type CliContext struct {
	Config godoo.ConfigVals
	// contains filtered or unexported fields
}

CliContext encapsulates user inputs and is passed around to execute desired operations

func (*CliContext) GetCommand

func (ac *CliContext) GetCommand() (godoo.ICommand, error)

func (*CliContext) SetupCliContext

func (ac *CliContext) SetupCliContext(args []string)

func (*CliContext) SetupFlagParser

func (ac *CliContext) SetupFlagParser()

Jump to

Keyboard shortcuts

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