MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / NewPricingView

Function NewPricingView

internal/tui/views/pricing.go:179–189  ·  view source on GitHub ↗
(width, height int)

Source from the content-addressed store, hash-verified

177const pricingSplitThreshold = 7
178
179func NewPricingView(width, height int) *PricingView {
180 return &PricingView{
181 ActiveSection: PricingSectionCommand,
182 BuilderFocus: BuilderFocusField,
183 CommandBuilder: NewCommandBuilderState(),
184 ResultsPerPage: 15,
185 SuggestionIndex: -1,
186 Width: width,
187 Height: height,
188 }
189}
190
191// PricingEvent is returned from HandleKey.
192type PricingEvent int

Callers 1

NewAppFunction · 0.92

Calls 1

NewCommandBuilderStateFunction · 0.85

Tested by

no test coverage detected