cliexiter

package
v0.0.0-...-b097151 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 2 Imported by: 0

README

problem statement

lib for exiting a CLI

features

  • cross platform terminal support
  • API exposed via interface
  • fake implementation to allow faking interactions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliExiter

type CliExiter interface {
	Exit(req ExitReq)
}

CliExiter allows mocking/faking program exit

func New

func New(
	cliOutput clioutput.CliOutput,
	ios ios.IOS,
) CliExiter

type ExitReq

type ExitReq struct {
	Message string
	Code    int
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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