cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopUI = &nopUIImpl{}

Functions

This section is empty.

Types

type RootDir

type RootDir struct {
	files.Path
}

RootDir represents a project root directory.

func (*RootDir) BinDir

func (d *RootDir) BinDir() files.Path

BinDir returns the directory path contains executable binaries.

type UI

type UI interface {
	Section(msg string)
	Subsection(msg string)
	ItemSuccess(msg string)
	ItemSkipped(msg string)
	ItemFailure(msg string, errs ...error)
	Confirm(msg string) (bool, error)
}

UI is an interface for intaracting with the terminal.

func NewUI

func NewUI(io iio.IO) UI

NewUI creates a new UI instance.

func UIInstance

func UIInstance(io iio.IO) UI

UIInstance retuens a singleton UI instance.

Jump to

Keyboard shortcuts

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