cmd

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "device-init",
	Short: "Initialize your device",
	Long: `device-init allows you to configure various aspect of your devices.
This ranges from configuration as simple as setting a hostname to
more complex stuff as configuring WiFi access.`,
	Run: func(cmd *cobra.Command, args []string) {
		if cfgFile != "" {
			setAllCommands()
		} else {
			cmd.Help()
		}
	},
}

This represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ClusterLabConfig added in v0.1.7

type ClusterLabConfig struct {
	Service map[string]string
}

type Credentials added in v0.1.0

type Credentials struct {
	Ssid, Password string
}

type DockerConfig added in v0.1.4

type DockerConfig struct {
	Images []string
}

type WifiConfig added in v0.1.0

type WifiConfig struct {
	Interfaces map[string]Credentials
}

Jump to

Keyboard shortcuts

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