Files
cc-connect/cmd
Claude 155b204b64 feat(config): auto-format on save and add config format CLI command
- Enhanced formatTOML to also strip trailing whitespace per line,
  collapse consecutive blank lines, and trim leading blank lines
- writeRawConfig now applies formatTOML before writing, so every
  config save path produces consistently formatted output
- Added `cc-connect config` subcommand group:
  - `config format` (alias: `fmt`) — format the config file in place
  - `config example` — print annotated config example
  - `config path` — print resolved config file path
- Old `config-example` subcommand kept for backwards compatibility
- Added FormatConfigFile() with TOML validation before writing
- Added tests for formatTOML and FormatConfigFile

Made-with: Cursor
2026-03-31 19:58:18 +08:00
..