cli

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package cli provides wrapper support for executing commands, this is so we can test the rest of the implementations quickly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdExecutor

type CmdExecutor interface {
	Execute(mask bool, args ...string) (out string, err error)
	ExecuteAndStreamOutput(mask bool, outputHandler OutputHandler, pat string, args ...string) error
}

func NewCli

func NewCli(hook shutdown.CancelHook) CmdExecutor

type ExecuteCliErr

type ExecuteCliErr struct {
	Err error
	Cmd string
}

type OutputHandler

type OutputHandler func(line string)

OutputHandler is a function type that processes lines of output

type UnableToStartErr

type UnableToStartErr struct {
	Err error
	Cmd string
}

func (UnableToStartErr) Error

func (u UnableToStartErr) Error() string

Jump to

Keyboard shortcuts

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