Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultCacheTTL = 24 * time.Hour
)
Default values
Variables ¶
View Source
var ( BuildSupabaseURL string BuildSupabaseAnonKey string )
Functions ¶
func GetConfigDir ¶
GetConfigDir returns the configuration directory (public helper)
Types ¶
type Config ¶
type Config struct {
// Supabase configuration
SupabaseURL string `env:"SUPABASE_URL" yaml:"supabase_url"`
SupabaseAnonKey string `env:"SUPABASE_ANON_KEY" yaml:"supabase_anon_key"`
// Auth configuration
AuthToken string `env:"AUTH_TOKEN" yaml:"auth_token"`
// Cache configuration
CacheDir string `env:"CACHE_DIR" yaml:"cache_dir"`
CacheTTL time.Duration `env:"CACHE_TTL" yaml:"cache_ttl"`
// General settings
Debug bool `env:"DEBUG" yaml:"debug"`
NoColor bool `env:"NO_COLOR" yaml:"no_color"`
}
Config holds all configuration for the CLI
Click to show internal directories.
Click to hide internal directories.