Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
Alpha-sort some variables/struct fields/option names
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
  • Loading branch information
jandubois committed Apr 22, 2021
1 parent 8796206 commit 93b7df5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import (
)

var (
isoURL string
cmdline string
cpuCount int
memorySize int
diskSize int
hyperkitPath string
isoURL string
memorySize int
mountRoot string
volumeMounts []string
cmdline string
hyperkitPath string

startCmd = &cobra.Command{
Use: "start",
Expand All @@ -39,14 +39,14 @@ var (
func init() {
rootCmd.AddCommand(startCmd)

startCmd.Flags().StringVar(&isoURL, "iso-url", "", "URL of the boot2docker.iso")
startCmd.Flags().StringVar(&cmdline, "boot-options", defaultCmdline, "Boot commandline options")
startCmd.Flags().IntVar(&cpuCount, "cpus", 2, "Number of cpus")
startCmd.Flags().IntVar(&memorySize, "memory", 4096, "Memory size in MB")
startCmd.Flags().IntVar(&diskSize, "disk-size", 40000, "Disk size in MB")
startCmd.Flags().StringVar(&hyperkitPath, "hyperkit", "", "Path to hyperkit executable")
startCmd.Flags().StringVar(&isoURL, "iso-url", "", "URL of the boot2docker.iso")
startCmd.Flags().IntVar(&memorySize, "memory", 4096, "Memory size in MB")
startCmd.Flags().StringVar(&mountRoot, "mount-root", "/nfsshares", "NFS mount root")
startCmd.Flags().StringArrayVar(&volumeMounts, "volume", []string{}, "Paths to mount via NFS")
startCmd.Flags().StringVar(&cmdline, "boot-options", defaultCmdline, "Boot commandline options")
startCmd.Flags().StringVar(&hyperkitPath, "hyperkit", "", "Path to hyperkit executable")
}

func startCommand(cmd *cobra.Command, args []string) error {
Expand Down
8 changes: 4 additions & 4 deletions pkg/hyperkit/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ const (
type Driver struct {
*drivers.BaseDriver
*pkgdrivers.CommonDriver
Boot2DockerURL string
BootInitrd string
BootKernel string
Boot2DockerURL string
DiskSize int
CPU int
Cmdline string
DiskSize int
Hyperkit string
Memory int
Cmdline string
NFSShares []string
NFSSharesRoot string
UUID string
VpnKitSock string
VSockPorts []string
VpnKitSock string
}

// NewDriver creates a new driver for a host
Expand Down

0 comments on commit 93b7df5

Please sign in to comment.