busy

package
v2.0.0-rc.5 Latest Latest
Warning

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

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

Documentation

Overview

Package busy implements a dispatcher for BusyBox-style multi-call binaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogLevel

func GetLogLevel() logrus.Level

func GetLogrusFormatter

func GetLogrusFormatter() logrus.Formatter

func GetRootLogger

func GetRootLogger() dlog.Logger

func Init

func Init()

Init initializes our logger. We expose this function for tests.

func Main

func Main(binName, humanName string, version string, cmds map[string]Command)

func SetLogLevel

func SetLogLevel(lvl logrus.Level)

Types

type Command

type Command struct {
	Setup func()
	Run   func(ctx context.Context, version string, args ...string) error
}

Jump to

Keyboard shortcuts

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