-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The Artifex (4r7if3x) edited this page Dec 27, 2024
·
2 revisions
- Godini works on all major operating systems including BSD, Linux, macOS, and Windows.
- Godini can read, add, modify, and delete settings across the entire config file or specific sections of it.
- Godini supports toggling and manipulation of commented settings for a tidier result.
- Godini accepts various forms of input and could be utilized for bulk operations.
Download the appropriate binary or package for your processor architecture and operating system from the latest release. Then, you can install it as a system command:
BSD, Linux, and macOS
sudo chmod +x /path/to/godini
sudo mv /path/to/godini /usr/bin/godini
Windows
Unblock-File -Path "C:\path\to\godini.exe"
Move-Item -Path "C:\path\to\godini.exe" -Destination "C:\Windows\System32\godini.exe"
or, follow the instructions below to install the provided packages:
Debian-based Linux distros
sudo apt install /path/to/godini.deb
RedHat-based Linux distros
sudo dnf install /path/to/godini.rpm
otherwise, you can also compile and install it directly from the source if you have Go installed on your system:
go install github.com/bilbilak/godini
godini --help
man godini
Examples:
BSD, Linux, and macOS
godini ... /path/to/settings.txt
godini ... < /path/to/settings.txt
cat /path/to/settings.txt | godini ...
godini ... <<EOF
...
EOF
Windows
godini ... "C:\path\to\settings.txt" ...
Get-Content "C:\path\to\settings.txt" | godini ...
$settings = @"
...
"@
$settings.Trim() | godini ...
@"
...
"@ | godini ...