config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

func Path

func Path() string

func Save

func Save(cfg *CLIConfig) error

Types

type CLIConfig

type CLIConfig struct {
	APIKey          string `json:"api_key,omitempty"`
	Domain          string `json:"domain,omitempty"`
	APIURL          string `json:"api_url,omitempty"`
	DefaultTemplate string `json:"default_template,omitempty"`
	DefaultTimeout  int    `json:"default_timeout,omitempty"`
}

func Load

func Load() (*CLIConfig, error)

type Resolved

type Resolved struct {
	APIKey string
	Domain string
	APIURL string
}

func Resolve

func Resolve(flagAPIKey, flagDomain string) (*Resolved, error)

Jump to

Keyboard shortcuts

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