Ardent: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== Description == | == Description == | ||
An opinionated code formatter (aka "beautifier") for NSIS scripts | An opinionated code formatter (aka "beautifier") for NSIS scripts. It's API-compatible with [https://www.npmjs.org/package/@nsis/dent dent], which powers code formatting in VS Code and Atom/Pulsar Edit. | ||
== Installation == | == Installation == | ||
Revision as of 21:58, 25 June 2026
Description
An opinionated code formatter (aka "beautifier") for NSIS scripts. It's API-compatible with dent, which powers code formatting in VS Code and Atom/Pulsar Edit.
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.