Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Globals ¶
type Globals struct {
PatternFlags PatternFlags `embed:""`
Streaming bool `help:"Don't stop after the first match."`
Followers []*url.URL `sep:"none" name:"add-follower" help:"Add the given host to the list of followers."`
FollowersOnly bool `help:"Use only followers and spawn no threads on the director."`
}
type PatternFlags ¶
type PatternFlags struct {
Pattern string `required:"" help:"Desired matching pattern."`
IgnoreCase bool `help:"Use case-insensitive pattern matching."`
Method struct {
Prefix bool `xor:"method" required:"" help:"match the beginning"`
Globing bool `xor:"method" help:"use glob pattern matching"`
} `embed:"" prefix:"use-"`
}
type RootCommand ¶
type RootCommand struct {
Globals `embed:""`
Ssh SSHCommand `cmd:"" help:"generate ssh keys"`
Wg WGCommand `cmd:"" help:"generate wireguard keys"`
}
func (*RootCommand) AfterApply ¶
func (c *RootCommand) AfterApply(globals *RootCommand, st *State) error
type SSHCommand ¶
type SSHCommand struct {
Match struct {
Fingerprint bool `help:"Match against fingerprint."`
PublicKey bool `help:"Match against public key."`
} `embed:"" prefix:"match-"`
}
func (*SSHCommand) Run ¶
func (c *SSHCommand) Run(glb *RootCommand, st *State) error
Click to show internal directories.
Click to hide internal directories.