Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultAPIURL = "https://us1.oodle.ai"
DefaultAPIURL is the default Oodle API URL.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the path to the configuration file. The path can be overridden by the OODLE_CONFIG environment variable.
Types ¶
type Config ¶
type Config struct {
APIKey string `yaml:"api_key"`
Instance string `yaml:"instance"`
APIURL string `yaml:"api_url"`
}
Config holds the resolved Oodle CLI configuration.
func LoadConfig ¶
LoadConfig resolves configuration with the precedence:
CLI flags > env vars > config file > defaults.
Empty strings in flag arguments are treated as "not set".
Click to show internal directories.
Click to hide internal directories.