config

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const BaseHackTheBoxAPIURL = "https://" + HostHackTheBox + "/api/v4"
View Source
const HostHackTheBox = "labs.hackthebox.com"
View Source
const StatusURL = "https://status.hackthebox.com/api/v2/status.json"
View Source
const Version = "v1.6.0"

Variables

View Source
var BaseDirectory = homeDir + "/.local/htb-cli"
View Source
var ConfigFile map[string]string

Functions

func ConfigureLogger added in v1.5.0

func ConfigureLogger() error

func Init

func Init() error

Init initializes the application by setting up necessary directories, creating a default configuration file if it doesn't exist, and loading the configuration.

func LoadConfig

func LoadConfig(filepath string) (map[string]string, error)

LoadConfig reads a configuration file from a specified filepath and returns a map of key-value pairs.

Types

type Settings

type Settings struct {
	Verbose    int
	Logger     *zap.Logger
	ProxyParam string
	BatchParam bool
	NoCheck    bool
}
var GlobalConfig Settings

Jump to

Keyboard shortcuts

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