cmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPath string
View Source
var Debug bool

Functions

func ConfigureZapLogger

func ConfigureZapLogger(debugging bool) (*zap.Logger, error)

ConfigureZapLogger configures the zap logger and returns a pointer to the logger and an error

func ConfigureZapSugarLogger

func ConfigureZapSugarLogger(debugging bool) (*zap.SugaredLogger, error)

ConfigureZapSugarLogger configures the zap logger as a zap.SugaredLogger and returns a pointer to the logger and an error

func Execute

func Execute()

Execute executes the root command

func InitialiseApplication added in v0.1.4

func InitialiseApplication()

InitialiseApplication initialises the application

func PromptUser

func PromptUser(message string) error

PromptUser prompts the user to confirm an action and returns an error if the user does not confirm

Types

type Configuration

type Configuration struct {
	APIConfig api.APIConfiguration `yaml:"opendoar"`
}

Configuration is the configuration for the application

func (*Configuration) Initialise

func (config *Configuration) Initialise(configFilePath string) error

Initialise initialises the application configuration

Jump to

Keyboard shortcuts

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