cmd

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(stdin io.Reader, stdout io.Writer, args ...string) error

func RunSubCmdFromCmd added in v0.5.2

func RunSubCmdFromCmd(name string, cmd *cobra.Command, args ...string) error

コマンド内から別のコマンドを実行する

func RunSubCmdWithIO added in v0.5.2

func RunSubCmdWithIO(name string, stdout, stderr io.Writer, args ...string) error

出力を指定してコマンドを実行する

Types

type CmdFunc added in v0.5.2

type CmdFunc (func() *cobra.Command)

func GetSubCmd added in v0.5.2

func GetSubCmd(name string) *CmdFunc

Get a command from the command list.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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