conf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(name, desc string, cfg cmdContext)

Run задаёт стандартные значения, читает конфиг, проверяет переменное окружение и флаги.

Types

type Args

type Args struct {
	Version VersionCmd `cmd:"" help:"Показать информацию о версии"`
	Verbose bool       `name:"verbose" short:"v" help:"Включить расширенное логирование"`
}

func (*Args) Debug

func (a *Args) Debug() bool

type Context

type Context struct {
	Verbose bool
}

type VersionCmd

type VersionCmd struct {
}

func (*VersionCmd) Run

func (l *VersionCmd) Run(ctx *Context) error

Jump to

Keyboard shortcuts

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