제어문자 관리 도구 모음

이 디렉토리는 Jekyll 블로그의 제어문자를 관리하는 도구들을 포함합니다.

📁 포함된 도구들

🔍 제어문자 검사 및 정리

  • clean-control-chars.py - Python 기반 제어문자 검사 및 정리 도구
  • clean-control-chars.sh - Bash 기반 제어문자 검사 및 정리 도구

🚀 Git 통합 도구

  • smart-git-add.sh - 제어문자 정리 후 자동 스테이징
  • install-git-hooks.sh - Git hooks 자동 설치
  • pre-commit-hook - Git pre-commit 훅 템플릿

🛠️ 사용법

Makefile을 통한 사용 (권장)

# 제어문자 검사
make check-control-chars

# 제어문자 정리
make clean-control-chars

# 스마트 Git Add
make git-smart-add

# Git Hooks 설치
make git-hooks-install

# 안전한 커밋
make git-commit-safe

직접 실행

# 제어문자 검사만
python3 tools/clean-control-chars.py --check-only

# 제어문자 정리
python3 tools/clean-control-chars.py

# 스마트 Git Add
./tools/smart-git-add.sh --all

# Git Hooks 설치
./tools/install-git-hooks.sh

🔧 설치 및 설정

  1. Git Hooks 설치
    make git-hooks-install
    
  2. 권한 설정
    chmod +x tools/*.sh
    chmod +x tools/*.py
    

📋 주요 기능

  • ✅ 숨은 제어문자 자동 감지
  • ✅ 안전한 백업 시스템
  • ✅ Git과 완벽한 통합
  • ✅ Jekyll 빌드 자동 테스트
  • ✅ 자동 파일 재스테이징

🚨 주의사항

  • 모든 도구는 백업을 생성합니다
  • Git Hooks는 커밋 전 자동으로 실행됩니다
  • 제어문자 정리 후 파일이 자동으로 재스테이징됩니다

📚 자세한 설명

자세한 사용법과 설명은 상위 디렉토리의 README-CLEAN-CONTROL-CHARS.md를 참조하세요.