Skip to content

feat: CLI 子命令 — normalize, fix-envs, compile-check, consolidate, config ai #7

Description

@kiki830621

概述

將 Phase 2 所有功能串接到 macdoc CLI,新增 PDF 子命令和 config 子命令。

檔案

  • 修改: Sources/MacDocCLI/MacDoc+PDF.swift — 加入 4 個新子命令
  • 修改: Sources/MacDocCLI/MacDoc.swift — 加入 Config 子命令群組

新 CLI 命令

macdoc pdf normalize  --project <path> [--strip-markers]
macdoc pdf fix-envs   --project <path> [--fix]
macdoc pdf compile-check --project <path> [--fix]
macdoc pdf consolidate --project <path> [--agent codex|claude|gemini] [--dry-run]

macdoc config ai detect
macdoc config ai list
macdoc config ai set <key> <value>

依賴

需先完成:所有 PDFToLaTeXCore 元件(#2 ~ #6)

設計文件

詳見 docs/plans/2026-03-08-phase2-consolidation-plan.md Task 6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions