MCPcopy Create free account
hub / github.com/diillson/chatcli / budgetLevelString

Function budgetLevelString

cli/config_sections.go:875–886  ·  view source on GitHub ↗

budgetLevelString turns a BudgetLevel into a localized label.

(l BudgetLevel)

Source from the content-addressed store, hash-verified

873
874// budgetLevelString turns a BudgetLevel into a localized label.
875func budgetLevelString(l BudgetLevel) string {
876 switch l {
877 case BudgetOK:
878 return i18n.T("cfg.val.budget_ok")
879 case BudgetWarning:
880 return i18n.T("cfg.val.budget_warning")
881 case BudgetExceeded:
882 return i18n.T("cfg.val.budget_exceeded")
883 default:
884 return i18n.T("cfg.val.unknown")
885 }
886}
887
888// ─── Section: INTEGRATIONS ─────────────────────────────────────
889

Callers 1

showConfigSessionMethod · 0.85

Calls 1

TFunction · 0.92

Tested by

no test coverage detected