MCPcopy Index your code
hub / github.com/coder/coder / Humanize

Method Humanize

codersdk/deployment.go:157–164  ·  view source on GitHub ↗

Humanize returns the addon name in a human-readable format.

()

Source from the content-addressed store, hash-verified

155
156// Humanize returns the addon name in a human-readable format.
157func (a Addon) Humanize() string {
158 switch a {
159 case AddonAIGovernance:
160 return "AI Governance"
161 default:
162 return strings.Title(strings.ReplaceAll(string(a), "_", " "))
163 }
164}
165
166// FeatureName represents the internal name of a feature.
167// To add a new feature, add it to this set of enums as well as the FeatureNames

Callers 10

ValidateDependenciesMethod · 0.95
TestScheduleShowFunction · 0.45
TestScheduleModifyFunction · 0.45
TestScheduleOverrideFunction · 0.45
updateEntitlementsMethod · 0.45
RequireFeatureMWMethod · 0.45
LicensesEntitlementsFunction · 0.45
TestEntitlementsFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestScheduleShowFunction · 0.36
TestScheduleModifyFunction · 0.36
TestScheduleOverrideFunction · 0.36
TestEntitlementsFunction · 0.36