Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
4fbf03a
Standardized printing. Organized color resources. Changed custom entr…
timjolson Jun 8, 2026
a922e51
removed extra `declare`s and -g `global`
timjolson Jun 28, 2026
f97e44a
adjusted example command for formatting and it serves as a test of co…
timjolson Jun 28, 2026
b2355e5
custom command failures provide the exit code
timjolson Jun 28, 2026
c2d4f05
Re-labeled colors for semantic indexing. removed extra formats. aCOLO…
timjolson Jun 28, 2026
8fd2570
added colors reference
timjolson Jun 28, 2026
46351ed
combined sudo and ns command prefixes since they were only ever used …
timjolson Jun 28, 2026
030a3c9
fixed syntax for shellcheck warning
timjolson Jun 28, 2026
0bab699
fixed indents
timjolson Jun 28, 2026
1842ff3
added BANNER_GET_WAN_IP so dietpi-banner can have it's own behavior
timjolson Jun 28, 2026
bd7d193
fail2ban status now uses 'fail2ban-client banned'. removed unneeded r…
timjolson Jun 29, 2026
90f93f7
on network usage, only do sudo if netns is requested
timjolson Jun 29, 2026
31a8928
Add example G_TRUNCATE_MID
timjolson Jun 29, 2026
00f821e
improved disk space handling with fallbacks for missing data
timjolson Jun 29, 2026
5dd9a97
fix indents
timjolson Jun 29, 2026
53305d0
refactored for associative indexing. includes a migration feature
timjolson Jun 29, 2026
c43d44a
fixed shellchecks
timjolson Jun 29, 2026
2e6ab72
to accomodate associative indexing, added enumeration option to G_WHI…
timjolson Jun 29, 2026
00626b0
keys were set in 3 places, so made the defaults more automated/dynami…
timjolson Jun 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ Below are minimal, copy-paste-ready examples that follow DietPi conventions.
log=1 G_WHIP_VIEWFILE "$FP_LOG" || return
```

- `G_TRUNCATE_MID` (shorten long strings by squishing the middle characters):
```
G_TRUNCATE_MID "Long text to be shortened by removing the middle" 26
# -> "Long text to... the middle"
G_TRUNCATE_MID "Long text" 5
# -> "L...t"
G_TRUNCATE_MID "Text" 3
# -> "Tex"
```

- `Save()` persistence pattern (follow dietpi-banner conventions):
```
Save(){
Expand Down
Loading
Loading