config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const BaseHackTheBoxAPIURL = "https://www.hackthebox.com/api/v4"
View Source
const Version = "v1.4.1"

Variables

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

Functions

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    bool
	ProxyParam string
	BatchParam bool
}
var GlobalConfig Settings

Jump to

Keyboard shortcuts

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