cli

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp() *cli.App

Types

type Config

type Config struct {
	API struct {
		Endpoint string `toml:"endpoint"`
		Username string `toml:"username"`
		Password string `toml:"password"`
		Timeout  int    `toml:"timeout"`
		TestMode bool   `toml:"test_mode"`
	} `toml:"api"`
	Output struct {
		Format string `toml:"format"`
		Colors bool   `toml:"colors"`
	} `toml:"output"`
	Logging struct {
		Level  string `toml:"level"`
		Colors bool   `toml:"colors"`
	} `toml:"logging"`
}

func LoadConfig

func LoadConfig(c *cli.Context) (*Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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