MCPcopy Create free account
hub / github.com/algolia/cli / PlanAvailable

Function PlanAvailable

pkg/cmd/shared/apputil/plan.go:55–62  ·  view source on GitHub ↗

PlanAvailable reports whether a plan with the given id is in the list.

(plans []dashboard.Plan, id string)

Source from the content-addressed store, hash-verified

53
54// PlanAvailable reports whether a plan with the given id is in the list.
55func PlanAvailable(plans []dashboard.Plan, id string) bool {
56 for i := range plans {
57 if plans[i].ID == id {
58 return true
59 }
60 }
61 return false
62}
63
64// PlanChoices returns the user-facing plan identifiers (the free plan is shown
65// as "free" regardless of its underlying id).

Callers 1

createApplicationFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected