Ardent: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "== Description == An opinionated code formatter (aka "beautifier") for NSIS scripts == Installation == === Cargo === <code>cargo install ardent</code> ===Scoop=== <pre>scoop bucket add nsis https://github.com/NSIS-Dev/scoop-nsis scoop install nsis/ardent</pre> === Homebrew === <code>brew install idleberg/asahi/ardent</code> === Nix === <code>nix profile install github:idleberg/ardent</code> === Mise === <pre>mise plugin install ardent https://github.com/idleb...") |
No edit summary |
||
| Line 38: | Line 38: | ||
# Edit files in-place | # Edit files in-place | ||
ardent format --write src/**/*.nsi</pre> | ardent format --write src/**/*.nsi</pre> | ||
See <code>ardent format --help</code> for available options. | |||
=== Check === | === Check === | ||
| Line 46: | Line 48: | ||
# Check and auto-fix (still exits 1 if drift was found) | # Check and auto-fix (still exits 1 if drift was found) | ||
ardent check --write src/**/*.nsi</pre> | ardent check --write src/**/*.nsi</pre> | ||
See <code>ardent check --help</code> for available options. | |||
== Links == | == Links == | ||
Revision as of 21:52, 25 June 2026
Description
An opinionated code formatter (aka "beautifier") for NSIS scripts
Installation
Cargo
cargo install ardent
Scoop
scoop bucket add nsis https://github.com/NSIS-Dev/scoop-nsis scoop install nsis/ardent
Homebrew
brew install idleberg/asahi/ardent
Nix
nix profile install github:idleberg/ardent
Mise
mise plugin install ardent https://github.com/idleberg/mise-ardent mise use ardent
Usage
Ardent provides two commands, format and check
Format
# Print formatted output to stdout ardent format installer.nsi # Edit files in-place ardent format --write src/**/*.nsi
See ardent format --help for available options.
Check
# Check only (reports drift) ardent check src/**/*.nsi # Check and auto-fix (still exits 1 if drift was found) ardent check --write src/**/*.nsi
See ardent check --help for available options.