cmd

package
v0.0.0-...-a341b7b Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configuration struct {
	Addr           string
	Mode           BoxMode
	DBFilePath     string
	Proxy          string
	ConfigFile     string
	LogFormatParam string
	LogLevelParam  string
}
View Source
var RootCmd = &cobra.Command{
	Use:   "blackbox",
	Short: "A minimalistic blog engine",
	Long: `Blackbox is a minimalisic blog engine, 
which provides a simple building, configuration and runnig solution.
Powered by well trained gophers!`,
}

RootCmd 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 BoxMode

type BoxMode int
const (
	ModeServe BoxMode = iota
	ModeRefine
	ModeInit
)

func (BoxMode) String

func (i BoxMode) String() string

Jump to

Keyboard shortcuts

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