cmd

package
Version: v0.0.0-...-f8a9016 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package cmd contains the interface for running commands in packages such as iw and ping.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner interface {
	// Run runs a command and waits for its completion.
	Run(ctx context.Context, cmd string, args ...string) error
	// Output runs a command, waits for its completion and returns stdout output of the command.
	Output(ctx context.Context, cmd string, args ...string) ([]byte, error)
}

Runner is the shared interface for local/remote command execution.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to