Skip to content

feat: 메가박스 CLI 명령 3종 추가 (#179) - #183

Closed
helenanova wants to merge 1 commit into
hmmhmmhm:mainfrom
helenanova:feature/179
Closed

helenanova wants to merge 1 commit into
hmmhmmhm:mainfrom
helenanova:feature/179

Conversation

@helenanova

Copy link
Copy Markdown
Contributor

변경 요약

  • 서버에는 이미 구현되어 있지만 CLI에 누락되어 있던 메가박스 명령 3종(megabox-theaters, megabox-movies, megabox-seats)을 추가했습니다.
  • cgv-* / lottecinema-* 명령과 동일한 옵션 체계(keyword, lat/lng, playDate, theaterId, movieId, areaCode, limit)를 따라 CLI 도움말(--help)과 스킬 참고 문서(cli-command-map.md)도 함께 갱신했습니다.

관련 이슈

체크리스트

  • npm run format:check 통과
  • npm run lint 통과
  • npm run typecheck 통과
  • npm test 통과 (149개 파일, 1,713개 테스트)
  • 필요 시 문서(README/CONTRIBUTING) 업데이트
  • 민감 정보(API 키/토큰/개인정보) 미포함 확인

테스트 방법

npm run check

각 명령의 API URL 조립을 검증하는 테스트 4건과 알 수 없는 옵션 거부 케이스 3건을 tests/app/cli.test.ts에 추가했습니다. 예시:

npx daiso megabox-theaters 강남 --limit 10
npx daiso megabox-movies --theaterId 1372 --playDate 20260310
npx daiso megabox-seats --theaterId 1372 --movieId 23816 --playDate 20260310

참고 사항

  • 실제 API 파라미터는 src/api/megaboxHandlers.ts의 핸들러를 기준으로 맞췄습니다. limit은 기존 핸들러 구현과 동일하게 theaters(기본 10)와 seats(기본 50)에만 지원합니다.
  • 문서는 스킬 참고 문서(skills/daiso-cli/references/cli-command-map.md)만 갱신했습니다. README의 CLI 예시 목록은 lottecinema-* 명령도 포함하지 않고 있어, 선별적 예시 목록이라는 기존 구성을 유지했습니다.

서버에 이미 구현된 메가박스 API(megabox/theaters, megabox/movies,
megabox/seats)를 CLI에서도 사용할 수 있도록 megabox-theaters,
megabox-movies, megabox-seats 명령을 추가합니다. cgv/lottecinema
명령과 동일한 옵션 체계(keyword, lat/lng, playDate, theaterId,
movieId, areaCode, limit)를 따릅니다.
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.

[feature] CLI 에 메가박스 명령 추가 (서버는 구현되어 있으나 megabox-* 명령이 없습니다)

1 participant