commands

package
v0.0.0-...-c953a64 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitFlags = []cli.Flag{
	&cli.StringFlag{
		Name:    constants.SecretFlag,
		Aliases: []string{"se"},
		Usage:   "This is the secret used to encrypt the connection information.",
	},
	&cli.StringFlag{
		Name:        constants.URLFlag,
		Aliases:     []string{"u"},
		Usage:       "The url the server should listen to i.e. yourdomain.com or 10.0.15.10.",
		Value:       "0.0.0.0",
		DefaultText: "localhost",
	},
	&cli.UintFlag{
		Name:        constants.PortFlag,
		Aliases:     []string{"p"},
		Usage:       "The port the server should listen on. The range of accepted ports are 1024 - 65535.",
		Value:       65056,
		DefaultText: "65056",
	},
	&cli.BoolFlag{
		Name:        constants.SSLFlag,
		Aliases:     []string{"s"},
		Usage:       "If the server should use SSL.",
		Value:       false,
		DefaultText: "False",
	},
	&cli.StringFlag{
		Name:        constants.DatabaseFlag,
		Aliases:     []string{"d"},
		Usage:       "Which kind of database engine to use.",
		Value:       "sqlite3",
		DefaultText: "sqlite3",
	},
	&cli.StringFlag{
		Name:        constants.ConnectionStringFlag,
		Aliases:     []string{"c"},
		Usage:       "The connection string to the specified database engine.",
		Value:       "data.db",
		DefaultText: "data.db",
	},
	&cli.StringFlag{
		Name:        constants.LogLevel,
		Aliases:     []string{"l"},
		Usage:       "The level to which logs are output. values are verbose, errors, silent",
		Value:       "verbose",
		DefaultText: "verbose",
	},
}

InitFlags the flags that the init command will look for

Functions

func InitializeCommand

func InitializeCommand(c *cli.Context) error

InitializeCommand this is the command handler for initializing the server

func Run

func Run(args []string)

Run the commands for the Materialization server

Types

This section is empty.

Jump to

Keyboard shortcuts

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