cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plop = plop{}

Plop 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 plop 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.

Directories

Path Synopsis
debug

Jump to

Keyboard shortcuts

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