common

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommonCliHelper

func GetCommonCliHelper() common.CliHelper

GetCommonCliHelper returns the common cli helper for both cli and admin commands

func SetAdminCommands

func SetAdminCommands(commands *[]cli.Command)

SetAdminCommands sets the admin commands

func SetAdminFlags

func SetAdminFlags(flags *[]cli.Flag)

SetAdminFlags sets the admin flags

func SetCommonCommands

func SetCommonCommands(
	commands *[]cli.Command,
	cliHelper common.CliHelper,
	serviceName string,
	authEnabled bool,
	getAuthProvider func(*cli.Context) cherami.AuthProvider,
)

SetCommonCommands sets the common commands for both cli and admin commands getAuthProvider is meaningful if and only if authEnabled is true

func SetCommonFlags

func SetCommonFlags(flags *[]cli.Flag, includeAuth bool)

SetCommonFlags sets the common flags for both cli and admin commands

Types

This section is empty.

Jump to

Keyboard shortcuts

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