Skip to content

feat: CLI에 HWPX 자동 감지 지원 추가#220

Merged
ohah merged 5 commits into
mainfrom
feat/cli-hwpx-support
Mar 20, 2026
Merged

feat: CLI에 HWPX 자동 감지 지원 추가#220
ohah merged 5 commits into
mainfrom
feat/cli-hwpx-support

Conversation

@ohah
Copy link
Copy Markdown
Owner

@ohah ohah commented Mar 19, 2026

Summary

  • 모든 CLI 명령어에서 HWP/HWPX 파일 자동 감지 (detect 함수)
  • .hwpx 입력 시 hwpxToJson/hwpxToHtml/hwpxToMarkdown 자동 호출
  • batch 명령어: .hwp + .hwpx 파일 모두 처리
  • info 명령어: HWPX 파일 정보 (섹션 수, 문단 수) 출력

변경 파일

  • src-cli/index.ts: description 업데이트
  • src-cli/commands/to-json.ts: detect + hwpxToJson
  • src-cli/commands/to-html.ts: detect + hwpxToHtml
  • src-cli/commands/to-markdown.ts: detect + hwpxToMarkdown
  • src-cli/commands/info.ts: detect + hwpxToJson
  • src-cli/commands/extract-images.ts: detect + hwpxToMarkdown
  • src-cli/commands/batch.ts: .hwpx 확장자 + detect

사용법

# HWP (기존과 동일)
hwpjs to-html input.hwp -o output.html

# HWPX (자동 감지)
hwpjs to-html input.hwpx -o output.html

# Batch (HWP + HWPX 모두)
hwpjs batch ./docs -o ./output --format html

Test plan

  • TypeScript 컴파일 확인
  • 기존 HWP CLI 동작 유지

🤖 Generated with Claude Code

ohah and others added 5 commits March 20, 2026 04:20
- 모든 CLI 명령어(to-json, to-html, to-markdown, info, extract-images, batch)에서
  HWP/HWPX 자동 감지 (detect 함수 사용)
- .hwpx 파일 입력 시 hwpxToJson/hwpxToHtml/hwpxToMarkdown 자동 사용
- batch 명령어: .hwp + .hwpx 파일 모두 검색
- description 업데이트 (HWP → HWP/HWPX)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- useless conversion, unnecessary cast, redundant closure 자동 수정
- write! → writeln! 변환
- unused import 제거
- nonminimal_bool allow 추가

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ohah ohah merged commit 8170399 into main Mar 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant