Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// Name : コマンド名
Name string
// Shorthand : ショートハンド
Shorthand string
// Short : 短いヘルプ文
Short string
// Long : 長いヘルプ文
Long string
// UsageArgs : 使い方(引数)
UsageArgs string
// Example : サンプル
Example string
// Hidden : コマンドを表示しない
Hidden bool
// Validate : 引数のバリデーション関数
Validate ValidateArgsFunc
// SetFlag : フラグの設定
SetFlag func(f *pflag.FlagSet)
// Run : コマンドの処理
Run func(c *Command, f *pflag.FlagSet) error
// Help : ヘルプ関数(オーバーライド)
Help func(c *Command, h string)
// contains filtered or unexported fields
}
Command : コマンド
func (*Command) GetChildrenNames ¶
GetChildrenNames : サブコマンド名の一覧を取得
type ValidateArgsFunc ¶
ValidateArgsFunc : 引数のバリデーション関数
Click to show internal directories.
Click to hide internal directories.