entrypoint

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

package entrypoint is the actual entrypoint for the command line application

Index

Constants

This section is empty.

Variables

View Source
var CLI struct {
	Logging struct {
		Level  string `help:"logging level" default:"info"`
		Format string `help:"logging format (${enum})" enum:"console,json" default:"json"`
	} `embed:"" prefix:"logging."`

	Assets assets.Config      `embed:"" prefix:"assets."`
	Badges badges.BadgeConfig `embed:"" prefix:"badges."`

	BadgeConfigDir string `help:"Path to the predefined badge configuration directory" type:"existingdir"`

	Debug struct {
		Assets struct {
			List struct {
			} `cmd:"" help:"list embedded files in the binary"`
			Cat struct {
				Filename string `arg:"" name:"filename" help:"embedded file to emit to stdout"`
			} `cmd:"" help:"output the specifid file to stdout"`
		} `cmd:""`
	} `cmd:""`

	API server.APIServerConfig `cmd:"" help:"Launch the web API"`
}
View Source
var (
	ErrCommandNotImplemented = errors.New("Command not implemented")
)

Functions

func Entrypoint

func Entrypoint(stdOut io.Writer, stdErr io.Writer) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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