-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
572 additions
and
597 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/awk -f | ||
# | ||
# colorcolumn - Like `column`, but works with ANSI colors | ||
# | ||
# Based on this Stack Exchange answer by Stephane Chazelas: | ||
# https://unix.stackexchange.com/a/121139/259233 | ||
|
||
# Example usage: | ||
# echo -e '\e[32mHello there\e[0m (\e[33mfailed\e[0m)|World\nFoo|Bar\na much longer line of text to show|and the description' | colorcolumn FS='|' OFS='' | ||
|
||
{ | ||
nf[NR]=NF | ||
for (i = 1; i <= NF; i++) { | ||
cell[NR,i] = $i | ||
gsub(/\033\[[0-9;]*[mK]/, "", $i) | ||
len[NR,i] = l = length($i) | ||
if (l > max[i]) max[i] = l | ||
} | ||
} | ||
END { | ||
for (row = 1; row <= NR; row++) { | ||
for (col = 1; col < nf[row]; col++) | ||
printf "%s%*s%s", cell[row,col], max[col]-len[row,col], "", OFS | ||
print cell[row,nf[row]] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
QPKG name:|QPKG statuses:|QPKG action (result):|QPKG version:|Application version: | ||
Bazarr|- [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
ClamAV|- [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| 0.104.4 | ||
duf| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240731| 0.8.1 | ||
Entware| [1;32menabled[0m, [1;32mactive[0m| [1;90munsupported[0m| 1.03a| 1.03a | ||
Glances| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
Headphones| [1;32menabled[0m, [1;32mactive[0m| start ([1;31mfailed[0m)| 240809| dynamic | ||
HideThatBanner| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240807| 240807 | ||
IncreaseTimeouts| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240808| 240808 | ||
inxi| [1;32menabled[0m, [1;32mactive[0m| [1;90munsupported[0m| 240417| 3.3.34 | ||
Kapowarr| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
LazyLibrarian| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
OLidarr| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
OMedusa| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
Mylar3| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
nzbget| [1;32menabled[0m, [1;32mactive[0m| [1;90munsupported[0m| 24.2| 24.2 | ||
NZBHydra2| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
nzbToMedia| [1;32menabled[0m, [1;32mactive[0m| [1;90munsupported[0m| 240205| dynamic | ||
OliveTin| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
Par2turbo| [1;32menabled[0m, [1;32mactive[0m| [1;90munsupported[0m| 1.1.0| 1.1.0 | ||
pyLoad| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
OqBittorrent| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| 4.6.3 | ||
QDK| [1;32menabled[0m, [1;32mactive[0m| [1;90munsupported[0m| 2.3.13| 2.3.13 | ||
OReadarr| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
RunLast| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240731| 240731 | ||
SABnzbd| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
sha3sum| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240808| 1.23.1 | ||
sherpa| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| 240809 | ||
OSickGear| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
OSonarr| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
SortMyQPKGs| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240801| 240801 | ||
OTautulli| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
OTransmission| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| 4.0.4 | ||
Unmanic| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
Unrar| [1;32menabled[0m, [1;32mactive[0m| [1;90munsupported[0m| 7.0.8| 7.01 beta 1 | ||
OWatcher3| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| final | ||
WebSSH| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic | ||
OWhisparr| [1;32menabled[0m, [1;32mactive[0m| start ([1;32mOK[0m)| 240809| dynamic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
readonly REPORT_OUTPUT_PATHFILE=report.ansi | ||
|
||
Tabilise() | ||
{ | ||
|
||
# Generate an ANSI-aware table with auto-width columns. | ||
|
||
# With many thanks to Stephane Chazelas for writing this: | ||
# https://unix.stackexchange.com/a/121139/259233 | ||
|
||
awk '{ | ||
nf[NR]=NF | ||
for (i = 1; i <= NF; i++) { | ||
cell[NR,i] = $i | ||
gsub(/\033\[[0-9;]*[mK]/, "", $i) | ||
len[NR,i] = l = length($i) | ||
if (l > max[i]) max[i] = l | ||
} | ||
} | ||
END { | ||
for (row = 1; row <= NR; row++) { | ||
for (col = 1; col < nf[row]; col++) | ||
printf "%s%*s%s", cell[row,col], max[col]-len[row,col], "", OFS | ||
print cell[row,nf[row]] | ||
} | ||
}' FS='|' OFS=' ' | ||
|
||
} | ||
|
||
Tabilise < "$REPORT_OUTPUT_PATHFILE" |