Skip to content

feat: add --non-interactive demo mode to main.py - #6

Merged
Aakash02A merged 2 commits into
Aakash02A:mainfrom
dbdefault:fix/2/non-interactive-demo-mode
Nov 13, 2026
Merged

Aakash02A merged 2 commits into
Aakash02A:mainfrom
dbdefault:fix/2/non-interactive-demo-mode

Conversation

@dbdefault

Copy link
Copy Markdown
Contributor

Add --non-interactive / -n CLI flag to main.py that runs the Caesar frequency auto-solve demo without blocking on input(), suitable for CI/curriculum showcases. Add tests/test_main.py covering flag parsing, demo execution without blocking, and clean exit.

Closes #2 (--non-interactive demo mode item)

Add --non-interactive / -n CLI flag to main.py that runs the Caesar
frequency auto-solve demo without blocking on input(), suitable for
CI/curriculum showcases. Add tests/test_main.py covering flag parsing,
demo execution without blocking, and clean exit.

Closes #2 (--non-interactive demo mode item)
- stop mocking main._run entirely; let it call the real module/function
- mock builtins.input to prevent blocking during demo
- verify actual demo output instead of fake call args

Closes #2
@dbdefault

Copy link
Copy Markdown
Contributor Author

리뷰 및 병합 요청드립니다.

수정 내용:

  • main.py: --non-interactive, -n 플래그 추가, 비대화형 데모 모드 구현
  • ests/test_main.py: _run 실제 호출, input만 모킹하여 실제 동작 검증
  • 3개 테스트 pass, GitGuardian 보안 검사 pass

리뷰 및 병합 부탁드립니다.

@Aakash02A
Aakash02A merged commit 72990b1 into Aakash02A:main Nov 13, 2026
9 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.

Welcome! Contribute to CipherForge (good first issues inside)

2 participants