refactor(cli): CLI 코드를 모듈 단위로 분리하여 구조 개선#168
Merged
ParkGyeongTae merged 1 commit intomasterfrom Sep 28, 2025
Merged
Conversation
ehddnr301
approved these changes
Sep 28, 2025
Collaborator
ehddnr301
left a comment
There was a problem hiding this comment.
👍 잘 동작합니다아ㅏㅏ 앞으로 테스트나 기여가 좀 더 쉬워지겠네요오!!
저는 아래 명령어들로 테스트해봤습니다! 잘 응답오거나 실행되는것을 확인했습니다!
uv run lang2sql --datahub_server http://34.16.99.175:8080 run-streamlit -p 30859
uv run lang2sql --vectordb-type faiss --vectordb-location ./dev/table_info_db run-streamlit -p 30859
uv run lang2sql --datahub_server http://34.16.99.175:8080 --env-file-path .env.dev --prompt-dir-path ./prompts run-streamlit -p 30859
uv run lang2sql query "신규 유저" --top-n 5 --database-env clickhouse --device cpu
uv run lang2sql query "신규 유저" --vectordb-type faiss --vectordb-location ./dev/table_info_db --top-n 8 --use-enriched-graph
uv run lang2sql query "신규 유저" --vectordb-type pgvector --vectordb-location "postgresql://postgres:postgres@localhost:5431/postgres"
💬 앞으로는 이런 테스트를 자동으로 돌려도 좋겠네요! 늘 좋은 인사이트 주셔서 감사합니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ Issue Number
📝 요약(Summary)
core,commands,utils)로 분리했습니다.run_streamlit,query,environment,streamlit_runner등 각 역할에 맞는 파일로 나눠 유지보수성을 개선했습니다.cli/__init__.py)는 명령어 등록 및 실행만 담당하도록 단순화했습니다.💬 To Reviewers (선택)
cli/core,cli/commands,cli/utils)가 적절한지 확인 부탁드립니다.PR Checklist
run-streamlit,query) 정상 실행 확인reference) How to Code Review