config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package config resolves spoo CLI configuration and filesystem paths.

Index

Constants

View Source
const DefaultAPIBase = "https://spoo.me"

DefaultAPIBase is the production spoo.me endpoint.

Variables

This section is empty.

Functions

func Dir

func Dir() (string, error)

Dir returns the spoo config directory, creating it if needed.

Types

type Config

type Config struct {
	APIBase string
}

func Load

func Load() Config

Load resolves configuration. SPOO_API_URL overrides the default, which keeps the CLI pointable at a local dev server.

Jump to

Keyboard shortcuts

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