cmdapp

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = viper.New()

Config is a viper based application config

View Source
var Log = logrus.New()

Log is applications logger

Functions

func CheckOrPanic

func CheckOrPanic(err error, msg string)

CheckOrPanic panics if err != nil

func Execute

func Execute(cmd *cobra.Command)

Execute the main command

func InitApplication

func InitApplication(rootCommand *cobra.Command)

InitApplication initializes the app by reading config file

func LogIf

func LogIf(err error)

LogIf logs error if err != nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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