Lewati ke konten utama

Dry Run

Dry Run

Safety Tool

Tinjau planned operation sebelum supported mutations diterapkan.

Commandcusty --dry-run COMMAND

Category

Concept

Quick Command

custy --dry-run COMMAND [OPTIONS]

Ringkasan​

Cara Menentukan Mode yang Efektif

Custy menentukan dry-run berdasarkan urutan berikut: explicit CLI option, setting tool.custy.cli.execution.dry_run, lalu built-in default false. Karena itu, tidak menyertakan --dry-run belum tentu mengaktifkan normal execution jika configuration menetapkan dry_run = true.

Pilih preview atau normal execution secara eksplisit
bash
# Paksa preview mode, apa pun default pada configuration
custy --dry-run changelog generate

# Paksa normal execution walaupun configuration mengaktifkan dry_run

custy --no-dry-run changelog generate

Simulation Boundary

Discovery

Baca repository, files, configuration, dan remotes yang diperlukan.

Validation

Jalankan checks yang dibutuhkan untuk menilai request.

Resolution

Tentukan versions, profiles, steps, dan destinations.

Mutation Suppression

Hindari supported file/Git/network changes.

A Safe Preview Sequence

  1. Periksa repository state. 2. Jalankan dry run. 3. Baca resolved values, stages, files, tags, dan destinations. 4. Perbaiki configuration atau input. 5. Jalankan ulang dry run sebelum normal execution.