INNER CODE UNIT · Go

func

envoyproxy/ai-gateway · cmd/aigw/main.go:68

func (c *cmd) BeforeApply(_ *kong.Context) error {
	// Expand paths unconditionally (handles ~/, env vars, and converts to absolute)
	// Set defaults only if not set (empty string)
	if c.ConfigHome == "" {
		c.ConfigHome = "~/.config/aigw"
	}
	c.ConfigHome = expandPath(c.ConfigHome)

	if c.DataHome == "" {
		c.DataHome = "~/.local/share/aigw"
	}
	c.DataHome = expandPath(c.DataHome)

	if c.StateHome == "" {
		c.StateHome = "~/.local/state/aigw"
	}
	c.StateHome = expandPath(c.StateHome)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…