util

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(cmdFunc func() int) (exitCode int)

RunCommand calls the given cmdFunc returns its exit value. It ensures that:

A CmdError is logged using an ui.Message (changes exitCode to 1) SIGINT and SIGTERM are handled (changes exitCode to 1) All started plugins are cleaned up

Types

type CmdError

type CmdError string

func (CmdError) Error

func (e CmdError) Error() string

Jump to

Keyboard shortcuts

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