Skip to content

arkjedrz/pini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pini

Basic INI file formatter.

Tools used for development

  • Fedora Linux 42
  • Rust 1.86.0

Build and install

Build from source:

cargo build --release

Install from source:

cargo install --path .

Create packages

Packages are created with additional software:

cargo install cargo-deb cargo-generate-rpm cargo-aur

Application must be built and stripped:

cargo build --release
strip -s target/release/pini

Create packages:

cargo deb
cargo generate-rpm
cargo aur

Supported options

AssignmentSpaces

  • None -> key=value.
  • Both -> key = value.
  • LeftOnly -> key =value.
  • RightOnly -> key= value.

EmptyLinesBeforeSection

E.g., for 1:

key=value
[section_name]

becomes:

key=value

[section_name]

EmptyLineAtTheEnd

E.g., for true:

last_line = value

becomes:

last_line = value