shell

package
v0.0.0-...-670b31e Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package shell simplifies executing a command line utility, like kubectl, or a shell command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCoudlNotStart

func IsCoudlNotStart(err error) bool

IsCoudlNotStart asserts couldNotStartError.

func IsProblemInExecution

func IsProblemInExecution(err error) bool

IsProblemInExecution asserts problemInExecutionError.

func RunCommand

func RunCommand(ctx context.Context, name string, envVars []string, arg ...string) (string, int, error)

RunCommand executes a command with the given arguments and environment variables. It returns the output, the exit code and and error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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