Discover Packages
github.com/nerveband/beeper-api-cli
internal
config
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Jan 26, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
DefaultAPIURL = "http://localhost:39867"
DefaultOutputFormat = "json"
)
GetConfigPath returns the default config file path
Save writes the current configuration to disk
SaveConfig saves configuration to a specific file path
UpdateConfig updates specific fields in an existing config file
type Config struct {
APIURL string `mapstructure:"api_url"`
OutputFormat string `mapstructure:"output_format"`
}
DefaultConfig returns a Config with default values
Load reads configuration from ~/.beeper-api-cli/config.yaml
LoadConfig loads configuration from a specific file path
LoadFromEnv loads configuration from environment variables
Merge merges override config into base config (non-empty values from override take precedence)
Validate checks if the configuration is valid
Source Files
¶
Click to show internal directories.
Click to hide internal directories.