chest

package
v2.0.0-rc.2 Latest Latest
Warning

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

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

Documentation

Overview

Package chest The command chest, provides common tool methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdAble

func CmdAble(cmd string) bool

CmdAble determines whether a command is available, such as the command detection

func CmdExist

func CmdExist(cmd string) (bool, error)

CmdExist Used to check whether the command is available and to throw an exception.

func CmdSearchRun

func CmdSearchRun(cmd string, args []string, children ...string) (output string, isSearch bool, runErr error)

CmdSearchRun try the search command and execute it

func InputOption

func InputOption(title, def string) string

InputOption need input data from stdin optional

func InputRequire

func InputRequire(title string, validFunc func(string) bool) string

InputRequire required input data from stdin

Types

This section is empty.

Jump to

Keyboard shortcuts

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