conf

package
v0.2.0 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: 10 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:"Показать информацию о версии"`
	Server    server.Cmd          `cmd:"" help:"API сервер для менеджера паролей GophKeeper"`
	Register  client.RegisterCmd  `` /* 236-byte string literal not displayed */
	Authorize client.AuthorizeCmd `` /* 229-byte string literal not displayed */
	Verbose   bool                `name:"verbose" short:"v" help:"Включить расширенное логирование"`
}

func (*Args) Debug

func (a *Args) Debug() bool

type VersionCmd

type VersionCmd struct {
}

func (*VersionCmd) Run

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

Jump to

Keyboard shortcuts

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