MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getBoolFromMeta

Function getBoolFromMeta

pkg/blockcontroller/blockcontroller.go:347–356  ·  view source on GitHub ↗
(meta map[string]any, key string, def bool)

Source from the content-addressed store, hash-verified

345}
346
347func getBoolFromMeta(meta map[string]any, key string, def bool) bool {
348 ival, found := meta[key]
349 if !found || ival == nil {
350 return def
351 }
352 if val, ok := ival.(bool); ok {
353 return val
354 }
355 return def
356}
357
358func getTermSize(bdata *waveobj.Block) waveobj.TermSize {
359 if bdata.RuntimeOpts != nil {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected