cli

package
v0.0.0-...-e53fd9e Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RestartFileBase = func() string {
	return fmt.Sprintf(".restart.%d", os.Getpid())
}

RestartFileBase generates the basename of the restart file for the current process.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Param  *config.Parameters
	Log    *log.Handler
	Config *config.Config
}

CLI represents the properties of an active command-line session.

func Start

func Start(param *config.Parameters) (ui *CLI, err error)

Start creates a new command-line session with given parameters.

func (*CLI) CreateShell

func (ui *CLI) CreateShell() (err error)

CreateShell opens and attaches to a new shell as defined in the user's configuration file.

Jump to

Keyboard shortcuts

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