Documentation ¶
Index ¶
- Variables
- func DownRun(r *cmd.Root, c *cmd.Sub)
- func InitRun(r *cmd.Root, c *cmd.Sub)
- func SpinnerWait(done chan int, message string, wg *sync.WaitGroup)
- func UpRun(r *cmd.Root, c *cmd.Sub)
- func UpdateRun(r *cmd.Root, c *cmd.Sub)
- type DownArgs
- type GlobalFlags
- type InitArgs
- type UpArgs
- type UpFlags
- type UpdateArgs
- type UpdateFlags
Constants ¶
This section is empty.
Variables ¶
var Down = cmd.Sub{ Name: "down", Alias: "d", Short: "Bring Down A Hyprspace Interface.", Args: &DownArgs{}, Run: DownRun, }
Down brings down a Hyprspace interface and removes it from the system.
var Init = cmd.Sub{ Name: "init", Alias: "i", Short: "Initialize An Interface Config", Args: &InitArgs{}, Run: InitRun, }
Init creates a configuration for a Hyprspace Interface.
var ( // RevLookup allow quick lookups of an incoming stream // for security before accepting or responding to any data. RevLookup map[string]string )
var Root *cmd.Root
Root is the main command.
var Spinner = []string{"|", "/", "-", "\\"}
Spinner is an array of the progression of the spinner.
var Up = cmd.Sub{ Name: "up", Alias: "up", Short: "Create and Bring Up a Hyprspace Interface.", Args: &UpArgs{}, Flags: &UpFlags{}, Run: UpRun, }
Up creates and brings up a Hyprspace Interface.
var Update = cmd.Sub{ Name: "update", Alias: "upd", Short: "Update Hyprspace to the lastest version.", Args: &UpdateArgs{}, Flags: &UpdateFlags{}, Run: UpdateRun, }
Update checks for a new version of the Hyprspace program and updates itself if a newer version is found and the user agrees to update.
Functions ¶
func SpinnerWait ¶
SpinnerWait displays the actual spinner
Types ¶
type DownArgs ¶
type DownArgs struct {
InterfaceName string
}
DownArgs handles the specific arguments for the down command.
type GlobalFlags ¶
type GlobalFlags struct {
Config string `short:"c" long:"config" desc:"Specify a custom config path."`
}
GlobalFlags contains the flags for commands.
type InitArgs ¶
type InitArgs struct {
InterfaceName string
}
InitArgs handles the specific arguments for the init command.
type UpArgs ¶
type UpArgs struct {
InterfaceName string
}
UpArgs handles the specific arguments for the up command.
type UpFlags ¶
type UpFlags struct {
Foreground bool `short:"f" long:"foreground" desc:"Don't Create Background Daemon."`
}
UpFlags handles the specific flags for the up command.
type UpdateArgs ¶
type UpdateArgs struct { }
UpdateArgs handles the specific arguments for the update command.
type UpdateFlags ¶
type UpdateFlags struct {
Yes bool `short:"y" long:"yes" desc:"If a newer version is found update without prompting the user."`
}
UpdateFlags handles the specific flags for the update command.