cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 10 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 {
	clib.Path
}

RootDir represents a project root directory.

func (*RootDir) BinDir

func (d *RootDir) BinDir() clib.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 *clib.IO) UI

NewUI creates a new UI instance.

func UIInstance

func UIInstance(io *clib.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