cmd

package
v0.0.0-...-e120e2b Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: BSD-3-Clause Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfCommandExists

func CheckIfCommandExists(command string) (ok bool, err error)

func Exec

func Exec(command string, args ...string) error

func NewCommandBuilder

func NewCommandBuilder(name string, runner Runner) *commandBuilder

Types

type Runner

type Runner interface {
	Prepare(cmd *cobra.Command)
	InitFlag(cmd *cobra.Command)
	BeforeRun(cmd *cobra.Command)
	Run()
}

Directories

Path Synopsis
examples
yc

Jump to

Keyboard shortcuts

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