cmd

package
v0.0.0-...-fb7ad71 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Install = cli.Command{
	Name:   "install",
	Usage:  "Install or upgrade base system configuration and database",
	Action: InstallServer,
	Flags: []cli.Flag{
		boolFlag("init, i", "Initial database/config install"),
		boolFlag("migrate, m", "Migrate existing database"),
		boolFlag("force", "Force initial database/config install despite existing files"),
		stringFlag("level", "error", "Log level [trace|info|warn|error|fatal]"),
	},
}
View Source
var Server = cli.Command{
	Name:   "server",
	Usage:  "Control or query information from server",
	Action: StartServer,
	Flags: []cli.Flag{
		boolFlag("info", "Dump settings information for webserver"),
		boolFlag("start", "Start webserver and necessary auxiliary components"),
		stringFlag("level", "info", "Log level [trace|info|warn|error|fatal]"),
	},
}

Functions

func InstallServer

func InstallServer(c *cli.Context) (err error)

func SetupLogger

func SetupLogger(logName, slevel string)

func StartServer

func StartServer(c *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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