Documentation
¶
Overview ¶
Package config provides centralized configuration management for the application. It has no external dependencies to avoid circular imports with other internal packages.
Index ¶
Constants ¶
View Source
const ( // DirName is the name of the configuration directory DirName = "google-readonly" // CredentialsFile is the name of the OAuth credentials file CredentialsFile = "credentials.json" // TokenFile is the name of the OAuth token file (fallback storage) TokenFile = "token.json" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶
GetConfigDir returns the configuration directory path, creating it if needed. Uses XDG_CONFIG_HOME if set, otherwise ~/.config/google-readonly
func GetCredentialsPath ¶
GetCredentialsPath returns the full path to credentials.json
func GetTokenPath ¶
GetTokenPath returns the full path to token.json (fallback storage)
func ShortenPath ¶
ShortenPath replaces the home directory prefix with ~ for display purposes. This prevents exposing full paths including usernames in error messages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.