revert(sheets): drop direct flag-defs.json edits — generated from spec

data/flag-defs.json is regenerated from the upstream sheet-skill-spec
canonical-spec; editing it here gets clobbered on the next sync. The
schema realignment for +dropdown-set / -update --colors / --highlight
removal needs to land on the base table first, then flow back through
sheet-skill-spec → larksuite-cli sync, not via a direct CLI-side edit.

Restore the previous flag entries verbatim. The Go-side change in
buildDropdownValidation still drops the wire fields, so:

  - users passing --colors / --highlight today see the flag accepted
    silently (no effect on the wire) until the upstream removal lands;
  - after upstream removal + sync, both the flag declarations and the
    Go-side handling will be in sync.

Functional fixes (#1 workbook-create, #3 dropdown-get, #4 dim-move,
#5 range-sort) and dropdown wire-shape rename (#2) are unaffected.
This commit is contained in:
zhengzhijie
2026-05-22 11:42:36 +08:00
parent 556b2292c7
commit 5926e89ce3

View File

@@ -1874,6 +1874,17 @@
"stdin"
]
},
{
"name": "colors",
"kind": "own",
"type": "string",
"required": "optional",
"desc": "RGB hex color array (e.g. `[\"#1FB6C1\",\"#F006C2\"]`); length must equal `--options`",
"input": [
"file",
"stdin"
]
},
{
"name": "multiple",
"kind": "own",
@@ -1881,6 +1892,13 @@
"required": "optional",
"desc": "Enable multi-select; default `false`"
},
{
"name": "highlight",
"kind": "own",
"type": "bool",
"required": "optional",
"desc": "Color-highlight options; default `false`"
},
{
"name": "dry-run",
"kind": "system",
@@ -2784,6 +2802,17 @@
"stdin"
]
},
{
"name": "colors",
"kind": "own",
"type": "string",
"required": "optional",
"desc": "Color array (same length as `--options`)",
"input": [
"file",
"stdin"
]
},
{
"name": "multiple",
"kind": "own",
@@ -2791,6 +2820,13 @@
"required": "optional",
"desc": "Enable multi-select"
},
{
"name": "highlight",
"kind": "own",
"type": "bool",
"required": "optional",
"desc": "Color-highlight options"
},
{
"name": "dry-run",
"kind": "system",