mapFlagView adapts a +batch-update sub-op input object (decoded JSON) to the flagView interface so the standalone *Input translators can consume it. Keys are matched leniently against the CLI flag name: a translator asking for "source-range" finds either "source-range" or "source_range" in the map
| 52 | // translators branch on Changed() (e.g. omit target_index unless --index was |
| 53 | // set) and others read defaulted values (e.g. row-count defaults to 200). |
| 54 | type mapFlagView struct { |
| 55 | raw map[string]interface{} // user-supplied sub-op input (drives Changed) |
| 56 | defaults map[string]interface{} // flag defaults (value fallback only) |
| 57 | command string // shortcut command (e.g. "+chart-create"); used by schema validator |
| 58 | } |
| 59 | |
| 60 | func (m mapFlagView) Command() string { return m.command } |
| 61 |
nothing calls this directly
no outgoing calls
no test coverage detected