cmd

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCodeWithDefault added in v0.6.0

func ExitCodeWithDefault(err error) int

ExitCodeWithDefault returns the ExitStatus of a process from the error returned by exec.Run(). If the exit status is not available an error is returned.

func Next

func Next(args []string) (string, []string)

Next splits args into the next positional argument and any remaining args.

func Run added in v0.6.0

func Run(name string, args []string) error

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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