cli

package
v0.0.0-...-72c8848 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootFlags = []cli.Flag{
	&cli.StringFlag{
		Name:        "listen",
		Aliases:     []string{"l"},
		Usage:       "Bind the local server to this address.",
		Destination: &listenAddr,
		Required:    false,
		Value:       "127.0.0.1:8080",
	},

	&cli.StringFlag{
		Name:        "log_level",
		Aliases:     []string{"ll"},
		Usage:       "Set the log level.",
		Destination: &logLevel,
		Required:    false,
		Value:       "debug",
	},

	&cli.StringFlag{
		Name:        "db",
		Usage:       "Set the database connection string.",
		Destination: &dbConnStr,
		Required:    false,
		Value:       "sqlite3://:memory:",
	},

	&cli.StringFlag{
		Name:        "config",
		Aliases:     []string{"c"},
		Usage:       "Set the path to the config file.",
		Destination: &configPath,
		Required:    false,
		Value:       "",
	},
}

Functions

func CreateCliApp

func CreateCliApp() *cli.App

func InitConfigAndComponents

func InitConfigAndComponents() (*config.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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