cli

package
v0.0.0-...-31863d0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCommand

func NewRootCommand(cfg *Config) *cobra.Command

Types

type Config

type Config struct {
	Listen struct {
		Ip   string
		Port int
	}
	Auth struct {
		Token string
	}
	Verbose int
}

func NewConfig

func NewConfig() *Config

type Spf

type Spf struct {
	C   *cobra.Command
	V   *viper.Viper
	Cfg *Config
}

func InitCli

func InitCli() *Spf

func (*Spf) ReadConfig

func (s *Spf) ReadConfig(name string) error

Jump to

Keyboard shortcuts

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