cmd

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package webfmwk/v6/tls/cmd hold function destined to be used for command line implementation. Please see the github.com/spf13/viper package, github.com/spf13/cobra or gitlab.frafos.net/gommon/golib/v2/cmd.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToLevelHookFunc

func StringToLevelHookFunc() mapstructure.DecodeHookFunc

StringToLevelHookFunc allow tls.Level param to be processed by the spf13/cobra and spf13/viper utility. Use as following with frafos:

func fetchCfg() (cfg api.ServerCfg) {
	cmd.ReadCfg(&cfg,
		cmd_log.StringToSyslogHookFunc(),
		tls.StringToLevelHookFunc())

Types

This section is empty.

Jump to

Keyboard shortcuts

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