ABDiff 도움말

ABDiff는 비교/병합을 열고 CI 이미지 비교를 위해 명령줄 도구(abd)를 제공합니다.

설치

CLI를 설치하십시오.

  1. File ▸ Install CLI…를 선택하십시오.
  2. 설치 폴더를 선택하십시오.
  3. 해당 폴더를 귀하의 PATH에 추가하면 abd가 터미널에서 사용 가능하도록 하십시오.

PATH 편집

PATH에 폴더를 추가하는 방법:

  1. 시작 파일을 편집하십시오.
nano ~/.zshrc
  1. 이 줄을 추가하고 저장하십시오:
export PATH="$HOME/installation/folder:$PATH"
  1. 시작을 다시 로드하십시오 (또는 셸을 다시 시작하십시오).
source ~/.zshrc

CLI 빠른 사용법

이것은 일반적인 CLI 작업의 예시입니다.

# Open one file in the app
abd left.txt

# Open two files (ABDiff infers viewer mode)
abd left.txt right.txt

# Explicit two-way compare
abd --local left.txt --remote right.txt

# Explicit three-way merge
abd --base Base.txt --local Ours.txt --remote Theirs.txt --result Merged.txt

# Compare images in CI (no UI)
abd image left.png right.png --metric ssim --threshold 0.98

# Launch without blocking
abd --no-wait left.txt right.txt

abd image를 실행하면 점수를 출력하고, 비슷할 경우(임계값 내) 0을, 차이가 있을 때는 1을 종료합니다.