package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Apr 28, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DefaultClientID = "getnote-cli"
DefaultAPIBaseURL = "https://openapi.biji.com"
)
type Config struct {
APIKey string `json:"api_key"`
ClientID string `json:"client_id"`
}
Config holds the CLI configuration.
Get returns the singleton config, loading from file on first call.
Clear removes the stored API key and saves the config.
IsLoggedIn reports whether an API key is configured.
Save writes the current config to disk, creating the directory if needed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.