개발 · 명령 참조
qzx compareFiles
기능
텍스트 파일은 줄 단위로, 바이너리 파일은 정확한 바이트와 SHA-256으로 비교합니다.
명령 성숙도: Alpha
실제 사용과 피드백에 사용할 수 있지만 인터페이스와 동작은 아직 바뀔 수 있습니다. 현재 개발 체크아웃에 대한 평가입니다. 이후의 각 불변 릴리스 태그는 해당 버전에 포함된 정확한 평가를 보존합니다. PyPI 0.2.2.0.9에서 사용할 수 있습니다. 문서는 alpha 체크아웃 0.2.2.0.9에 해당합니다.
동작 및 내장 보호
상태를 변경하지 않고 검사합니다
이 작업은 직접 실행됩니다
네이티브 프로그램을 호출하지 않고 작동합니다
네트워크를 사용하지 않고 작동합니다
권한 상승 없이 작동하도록 설계되었습니다
이 안전 분류는 2026-08-25에 OpenAI GPT-5.6 Pro가 구현 다이제스트 sha256:14fc4e563390c03c8b4fc17e1efdc444e275ec2e8f03986ccaf5153e2e407d2e를 기준으로 검토했습니다.
정확한 구문
qzx compareFiles <file1> <file2> [mode] [max_bytes] --json매개변수
밀거나 가로 스크롤 막대를 사용해 모든 열을 확인하세요.
| 이름 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| file1 | str | 예 | 선언되지 않음 | 첫 번째 파일 경로 |
| file2 | str | 예 | 선언되지 않음 | 두 번째 파일 경로 |
| mode | str | 아니요 | "full" | 비교 모드: "full"(전체), "summary"(요약), "percent"(백분율) |
| max_bytes | int | 아니요 | 1048576 | 각 파일의 최대 허용 크기(바이트, 기본값 1 MiB) |
입력 예제
qzx compareFiles "file1.py" "file2.py"두 Python 파일을 비교하고 모든 차이 표시
qzx compareFiles "file1.txt" "file2.txt" "summary"두 텍스트 파일의 차이 요약 표시
qzx compareFiles "version1.js" "version2.js" "percent"두 JavaScript 파일의 유사도 백분율 표시
qzx compareFiles "image-a.png" "image-b.png"바이트와 SHA-256으로 두 바이너리 파일이 정확히 동일한지 확인
전체 구조화 페이로드를 받으려면 --json을 추가하세요: qzx compareFiles <file1> <file2> [mode] [max_bytes] --json
관찰된 출력 예제
Windows 11의 QZX 0.2.2.0.9에서 캡처했으며 종료 코드는 0입니다. 호스트에 따라 달라지는 값과 실행 시간은 변할 수 있습니다.
예제 명령: qzx compareFiles ../artifacts/qzx-evidence/compare-files/before.txt ../artifacts/qzx-evidence/compare-files/after.txt full --json
{
"success": true,
"file1": "../artifacts/qzx-evidence/compare-files/before.txt",
"file2": "../artifacts/qzx-evidence/compare-files/after.txt",
"identical": false,
"added_lines": 1,
"removed_lines": 1,
"total_changes": 2,
"diff": "Differences between '../artifacts/qzx-evidence/compare-files/before.txt' and '../artifacts/qzx-evidence/compare-files/after.txt':\n--- ../artifacts/qzx-evidence/compare-files/before.txt\n+++ ../artifacts/qzx-evidence/compare-files/after.txt\n@@ -1,2 +1,2 @@\n shared line\n-before\n+after\n\nStatistics:\n- Added lines: 1\n- Removed lines: 1\n- Total changes: 2",
"message": "Compared '../artifacts/qzx-evidence/compare-files/before.txt' with '../artifacts/qzx-evidence/compare-files/after.txt': 1 added and 1 removed lines.",
"content_type": "text",
"comparison_basis": "decoded_text_lines",
"byte_identical": false,
"bytes_file1": 21,
"bytes_file2": 20,
"encoding_file1": "utf-8",
"encoding_file2": "utf-8",
"encoding_confidence_file1": 1,
"encoding_confidence_file2": 1,
"sha256_file1": "66b132726d57d857c416bf212c2ac4758f8088ffd9144b01fca3f412dd0e163a",
"sha256_file2": "245ea69b327e3ad2ea5f90573f1a6357e076642171ad33720bd183fd7aed18f9",
"similarity_available": true,
"mode": "full",
"max_bytes": 1048576,
"meta": {
"command": "compareFiles",
"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": 6.208,
"schema_version": 1
}
}JSON 결과 계약 보기
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"error": {
"type": "string"
},
"error_code": {
"type": "string"
},
"remediation": {
"type": "string"
},
"file1": {
"type": "string"
},
"file2": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"full",
"summary",
"percent"
]
},
"identical": {
"type": "boolean"
},
"added_lines": {
"type": "integer"
},
"removed_lines": {
"type": "integer"
},
"total_changes": {
"type": "integer"
},
"diff": {
"type": "string"
},
"similarity": {
"type": "number"
},
"lines_file1": {
"type": "integer"
},
"lines_file2": {
"type": "integer"
},
"identical_lines": {
"type": "integer"
},
"changes": {
"type": "integer"
},
"summary": {
"type": "string"
},
"content_type": {
"type": "string",
"enum": [
"text",
"binary"
]
},
"comparison_basis": {
"type": "string"
},
"byte_identical": {
"type": "boolean"
},
"bytes_file1": {
"type": "integer"
},
"bytes_file2": {
"type": "integer"
},
"max_bytes": {
"type": "integer"
},
"encoding_file1": {
"type": [
"string",
"null"
]
},
"encoding_file2": {
"type": [
"string",
"null"
]
},
"encoding_confidence_file1": {
"type": [
"number",
"null"
]
},
"encoding_confidence_file2": {
"type": [
"number",
"null"
]
},
"sha256_file1": {
"type": "string"
},
"sha256_file2": {
"type": "string"
},
"similarity_available": {
"type": "boolean"
},
"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
}
},
"additionalProperties": true,
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"message",
"meta",
"success"
]
}오류 및 제한
공개 계약은 실패 시 success=false와 설명적인 message를 요구합니다. 이 카탈로그는 아직 명령별 오류 분류 체계를 선언하지 않으므로 결과를 확인하고 존재하지 않는 코드를 추정하지 마세요.
QZX는 alpha 단계입니다. 선택적 종속성, 권한 및 호스트 기능에 따라 결과가 달라질 수 있습니다.
근거 흐름: 캡처 및 다이제스트 검증 완료.
근거 및 출처
- 문서 채널
- 개발 문서 0.2.2.0.9 · main · sha256:cfba936e39931c286ca23add0ae546693db17d8b316e7cbc3891d26642d9b7e8
- 제공 여부
- 0.2.2.0.9 또는 이전
계속 살펴보기
관련 명령
이 명령들도 개발 범주에 속합니다. 비교하여 작업에 가장 적합한 작업을 선택하세요.
qzx cleanDevelopmentArtifacts캐시, 설치된 종속성 및 생성된 빌드 산출물을 찾습니다. 기본값은 미리보기만 수행합니다.qzx deployProject명시적으로 지정한 아티팩트를 SSH로 미리 보거나 배포하며, 검증된 원격 백업, SHA-256 검증, 원자적 승격, 상태 확인 및 자동 롤백을 제공합니다.qzx auditRepositoryGit 저장소에서 보안 및 품질 감사를 실행합니다. 비밀 정보, 대용량 파일, 중복, .gitignore 준수 및 라이선스를 검사합니다.qzx diagnoseProject프로젝트 스크립트를 실행하지 않고 기술, 종속성, 검증 흐름, Git 상태, 코드 품질 및 대용량 파일을 검사합니다.