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

Method handleKeyCommand

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

Source from the content-addressed store, hash-verified

240}
241
242func (v *PricingView) handleKeyCommand(key string) PricingEvent {
243 switch key {
244 case "esc":
245 return PricingEventQuit
246 case "tab":
247 v.handleTabBuilder()
248 return PricingEventNone
249 }
250 if v.BuilderFocus == BuilderFocusField {
251 return v.handleKeyBuilderField(key)
252 }
253 return v.handleKeyBuilderSuggestions(key)
254}
255
256func (v *PricingView) handleTabBuilder() {
257 input := v.CommandBuilder.SearchInput

Callers 1

HandleKeyMethod · 0.95

Calls 3

handleTabBuilderMethod · 0.95
handleKeyBuilderFieldMethod · 0.95

Tested by

no test coverage detected