cli

package
v0.0.0-...-810cf82 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 15 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bazil = bazil{}

Bazil allows command-line callables access to global flags, such as verbosity.

Functions

func Main

func Main() (exitstatus int)

Main is primary entry point into the bazil command line application.

Types

type Service

type Service interface {
	Setup() (ok bool)
	Teardown() (ok bool)
}

Service is an interface that commands can implement to setup and teardown services for the subcommands below them.

As Run and potential multiple Teardown failures makes having a single error return impossible, Setup and Teardown only get to signal a boolean success. Any detail should be exposed via log.

Jump to

Keyboard shortcuts

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