Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Minificazione di un file sorgente con minify

Il comando minify consente di ridurre l’ingombro del file sorgente IbiScript rimuovendo gli elementi ridondanti ai fini computazionali — quali spazi multipli, interruzioni di riga e, facoltativamente, commenti editoriali — senza alterare in alcun modo il valore semantico del testo. Questo processo di compressione sintattica è ideale per ottimizzare l’archiviazione dei dati e garantire una rappresentazione canonica compatta del documento.

$ ibis minify -h

Minify and canonicalise an IbiScript source file

Usage: ibis minify [OPTIONS] <FILE>

Arguments:
  <FILE>  The .ibi source file to minify

Options:
  -o, --output <OUTPUT>               Write output to a separate file, disabling in-place minification
      --check                         Check compliance without rewriting the file (returns a non-zero exit code if non-compliant)
  -k, --keep-comments                 Preserve comments in the minified output rather than discarding them
  -s, --lines <SEMANTIC_LINE_FILTER>  Extract specific semantic lines or ranges from the inscription (e.g., "2" or "4..5")
  -h, --help                          Print help