cli

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Functions

func BindPFlag

func BindPFlag(flags *pflag.FlagSet, key string, flag ...string)

func CobraOnInitializeFunc

func CobraOnInitializeFunc(configFilePath *string, config interface{}) func()

func GetEnvOrDefault

func GetEnvOrDefault(env, def string) string

func GetIntEnvOrDefault

func GetIntEnvOrDefault(env string, def int) int

func GetVersion added in v1.2.5

func GetVersion() (ver, rev string)

func PrintConfCommand

func PrintConfCommand(config interface{}) *cobra.Command

PrintConfCommand 設定確認・ベース設定プリントコマンド

func PrintVersion

func PrintVersion(cmd *cobra.Command, _ []string)

PrintVersion バージョンを出力する

func SetVersion added in v1.2.5

func SetVersion(ver, rev string)

func SetupDebugFlag

func SetupDebugFlag(flags *pflag.FlagSet)

func SetupLogLevelFlag

func SetupLogLevelFlag(flags *pflag.FlagSet)

func WaitSIGINT

func WaitSIGINT()

Types

This section is empty.

Jump to

Keyboard shortcuts

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