cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 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 PrintConfCommand

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

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

func PrintVersion

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

PrintVersion バージョンを出力する

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