개발 · 명령 참조
qzx getProjectTree
기능
하위 심볼릭 링크를 따라가지 않고 범위가 제한된 트리를 ASCII와 JSON으로 생성합니다.
명령 성숙도: Alpha
실제 사용과 피드백에 사용할 수 있지만 인터페이스와 동작은 아직 바뀔 수 있습니다. 현재 개발 체크아웃에 대한 평가입니다. 이후의 각 불변 릴리스 태그는 해당 버전에 포함된 정확한 평가를 보존합니다. PyPI 0.2.2.0.9에서 사용할 수 있습니다. 문서는 alpha 체크아웃 0.2.2.0.9에 해당합니다.
동작 및 내장 보호
상태를 변경하지 않고 검사합니다
이 작업은 직접 실행됩니다
네이티브 프로그램을 호출하지 않고 작동합니다
네트워크를 사용하지 않고 작동합니다
권한 상승 없이 작동하도록 설계되었습니다
이 안전 분류는 2026-08-25에 OpenAI GPT-5.6 Pro가 구현 다이제스트 sha256:5ccd75d947b974cd586e89b171111614cb66a656e219b1152a344ec058f28aad를 기준으로 검토했습니다.
정확한 구문
qzx getProjectTree [dir_path] [max_depth] [exclude_dirs] [include_files] [max_entries] --json매개변수
밀거나 가로 스크롤 막대를 사용해 모든 열을 확인하세요.
| 이름 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| dir_path | str | 아니요 | "." | 표시할 디렉터리(기본값: 현재 디렉터리) |
| max_depth | int | 아니요 | 2 | 하위 항목 최대 깊이, 0~64 |
| exclude_dirs | str | 아니요 | ".git,.idea,.next,.nuxt,.venv,.vscode,__pycache__,artifacts,build,dist,env,node_modules" | 제외할 디렉터리 이름을 쉼표로 구분. 비교는 대소문자를 구분하지 않음 |
| include_files | bool | 아니요 | true | 디렉터리뿐 아니라 일반 파일도 나열. 링크는 항상 표시하지만 따라가지 않음 |
| max_entries | int | 아니요 | 10000 | 유지할 하위 항목 최대 개수, 1~100000(기본값: 10000) |
입력 예제
qzx getProjectTree현재 프로젝트를 하위 2단계까지 표시
qzx getProjectTree src 3src 트리를 하위 3단계까지 표시
qzx getProjectTree . 2 .git,node_modules false --max_entries 500최대 500개 디렉터리 또는 링크를 표시하고 두 이름 제외
전체 구조화 페이로드를 받으려면 --json을 추가하세요: qzx getProjectTree [dir_path] [max_depth] [exclude_dirs] [include_files] [max_entries] --json
대표 출력 예제
이 예시 JSON은 현재 구현이 뒷받침하는 결과 계약에서 파생됩니다. 기록된 실행이라고 주장하지 않고 명령이 반환할 수 있는 내용을 보여 주며, 값은 입력, 장비, 권한 및 선택 도구에 따라 달라집니다.
예제 명령: qzx getProjectTree --json
{
"success": true,
"message": "Generates one bounded ASCII and JSON directory tree without following descendant symbolic links. In this illustrative example, the command completed successfully.",
"meta": {
"command": "getProjectTree",
"command_maturity": {
"stage": "alpha",
"label": "Alpha",
"sequence": 2,
"public_executable": true,
"stability": "interface_may_change",
"summary": "Available for real use and feedback while its interface and behavior can still evolve.",
"promotion_review_required": false,
"assessment_scope": "development_checkout"
},
"duration_ms": 0,
"schema_version": 1
},
"details": {
"summary": "Additional structured context is included here."
},
"dir_path": "C:\\project\\example.txt",
"exclude_dirs": [
".git",
"node_modules",
"__pycache__"
],
"include_files": true,
"max_depth": "Example value",
"max_entries": [
{
"name": "example",
"status": "ok"
}
],
"tree_structure": {
"name": "project",
"children": [
{
"name": "src",
"type": "directory"
}
]
},
"tree_text": "project/\n└── src/\n └── example.py",
"warnings": [
{
"name": "example",
"status": "ok"
}
]
}JSON 결과 계약 보기
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"success",
"message",
"meta"
],
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"meta": {
"type": "object",
"required": [
"command",
"command_maturity",
"duration_ms",
"schema_version"
],
"properties": {
"command": {
"type": "string"
},
"command_maturity": {
"type": "object",
"required": [
"stage",
"label",
"sequence",
"public_executable",
"stability",
"summary",
"promotion_review_required",
"assessment_scope"
],
"properties": {
"stage": {
"type": "string"
},
"label": {
"type": "string"
},
"sequence": {
"type": "integer"
},
"public_executable": {
"type": "boolean"
},
"stability": {
"type": "string"
},
"summary": {
"type": "string"
},
"promotion_review_required": {
"type": "boolean"
},
"assessment_scope": {
"type": "string"
},
"note": {
"type": "string"
},
"review": {
"type": "object",
"required": [
"reviewed_on",
"rationale",
"evidence"
],
"properties": {
"reviewed_on": {
"type": "string",
"format": "date"
},
"rationale": {
"type": "string"
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"replacement": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": true
},
"duration_ms": {
"type": "number"
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
"details": [],
"dir_path": [],
"error": {
"type": "string"
},
"error_code": {
"type": "string"
},
"exclude_dirs": [],
"include_files": [],
"max_depth": [],
"max_entries": [],
"tree_structure": [],
"tree_text": [],
"warnings": []
},
"additionalProperties": true
}오류 및 제한
공개 계약은 실패 시 success=false와 설명적인 message를 요구합니다. 이 카탈로그는 아직 명령별 오류 분류 체계를 선언하지 않으므로 결과를 확인하고 존재하지 않는 코드를 추정하지 마세요.
QZX는 alpha 단계입니다. 선택적 종속성, 권한 및 호스트 기능에 따라 결과가 달라질 수 있습니다.
근거 흐름: 결정론적 자동 캡처 준비 완료.
근거 및 출처
- 문서 채널
- 개발 문서 0.2.2.0.9 · main · sha256:cfba936e39931c286ca23add0ae546693db17d8b316e7cbc3891d26642d9b7e8
- 제공 여부
- 0.2.2.0.9 또는 이전
계속 살펴보기
관련 명령
이 명령들도 개발 범주에 속합니다. 비교하여 작업에 가장 적합한 작업을 선택하세요.
qzx getGitStatusGit 상태를 구조화해 요약합니다. 브랜치, 원격 저장소, 변경 사항 및 최근 커밋을 포함합니다.qzx planProjectBootstrap파일 작성, 종속성 설치, 비밀 생성 또는 마이그레이션 실행 없이 프로젝트 시작을 위한 선택 가능한 계획을 만듭니다.qzx formatCode언어를 감지하고 소스 코드 파일에 해당 포매터를 실행합니다.qzx prepareRelease버전 메타데이터 업데이트를 계획하고 매니페스트와 CHANGELOG.md를 원자적으로 수정할 수 있습니다. 빌드, 커밋, 태그 생성 또는 게시를 수행하지 않습니다.