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

Method handleKeyHeader

internal/tui/views/pricing.go:227–240  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

225}
226
227func (v *PricingView) handleKeyHeader(key string) PricingEvent {
228 switch key {
229 case "left":
230 return PricingEventPrevView
231 case "right":
232 return PricingEventNextView
233 case "down":
234 v.ActiveSection = PricingSectionCommand
235 v.UpdateSuggestions()
236 case "esc":
237 return PricingEventQuit
238 }
239 return PricingEventNone
240}
241
242func (v *PricingView) handleKeyCommand(key string) PricingEvent {
243 switch key {

Callers 1

HandleKeyMethod · 0.95

Calls 1

UpdateSuggestionsMethod · 0.95

Tested by

no test coverage detected