commands

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2015 License: MPL-2.0 Imports: 24 Imported by: 4

Documentation

Overview

package commands ...

Index

Constants

This section is empty.

Variables

View Source
var (
	Config  = config.Default
	Util    = util.Default
	Server  = server.Default
	Mist    = mist.Default
	Vagrant = vagrant.Default
	Hosts   = hosts.Default
	// File    = file.Default
	Print  = print.Default
	Notify = notify.Default
)

These public variables are for replacement testing

View Source
var (

	//
	NanoboxCmd = &cobra.Command{
		Use:   "nanobox",
		Short: "",
		Long:  ``,

		PersistentPreRun: func(ccmd *cobra.Command, args []string) {
			if config.Verbose {
				config.LogLevel = "debug"
			}
		},

		Run: func(ccmd *cobra.Command, args []string) {

			if version || config.Verbose {
				fmt.Printf("nanobox v%s\n", config.VERSION)
				os.Exit(0)
			}

			ccmd.HelpFunc()(ccmd, args)
		},
	}
)

Functions

func Update

func Update() error

Update

Types

This section is empty.

Directories

Path Synopsis
package box ...
package box ...
package engine ...
package engine ...

Jump to

Keyboard shortcuts

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