cmd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
 _ __ | | __ _| |_ _   _ _ __  _   _ ___ 
| '_ \| |/ _` + "`" + ` | __| | | | '_ \| | | / __|
| |_) | | (_| | |_| |_| | |_) | |_| \__ \
| .__/|_|\__,_|\__|\__, | .__/ \__,_|___/
|_|                |___/|_|
`

Logo is the string that should be displayed when the program starts

Functions

func AddAllFlags

func AddAllFlags(c *cobra.Command)

AddAllFlags will add all the flags provided in this package to the provided command and will bind those flags with viper

func AddConfigurationFlag

func AddConfigurationFlag(c *cobra.Command)

AddConfigurationFlag adds support to provide a configuration file on the command line

func AddLoggerFlags

func AddLoggerFlags(c *cobra.Command)

AddLoggerFlags adds support to configure the level of the logger

func AddServerFlags

func AddServerFlags(c *cobra.Command)

AddServerFlags adds support to configure the server

func Initialize

func Initialize()

Initialize will be run when cobra finishes its initialization

Types

This section is empty.

Jump to

Keyboard shortcuts

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