mirror of
https://github.com/larksuite/cli.git
synced 2026-07-03 14:02:43 +08:00
Replace hardcoded flag defaults in the fetch test helpers with fetchDefault() / fetchDefaultInt() helpers that read the declared defaults from v2FetchFlags(). This prevents future drift between production flag defaults and test setup, and panics loudly if a flag name is misspelled rather than silently returning "". The tests now correctly avoid hardcoding doc-format, but other flag defaults (detail, revision-id, scope, etc.) were still duplicated here. Deriving all defaults from v2FetchFlags() keeps the whole test command definition aligned with production. Co-authored-by: TraeCli (Doubao-Seed-Dogfooding) <trae@bytedance.com> Co-authored-by: fangshuyu <fangshuyu@bytedance.com>