Hello ports@
Here's a small and fun update for exfetch that adds 4 new animal ASCII
arts drawn by me. A friend wanted some non-OS-specific ASCII arts
built-in. The ASCII names are intentionally silly. This is my take on
that:
/usr/ports/sysutils/exfetch git:(master*) $ exfetch -P Fop
Fop preview:
/\ /\
< . >____*
|______|
/\ /\
/usr/ports/sysutils/exfetch git:(master*) $ exfetch -P Woof
Woof preview:
/|/|
( c )___\/
|______|
/\ /\
/usr/ports/sysutils/exfetch git:(master*) $ exfetch -P Meow
Meow preview:
|\_/|
\o.o/__
|_____\/
/\ /\
/usr/ports/sysutils/exfetch git:(master*) $ exfetch -P Bnuuy
Bnuuy preview:
/_/
(. )
<__</
Diff is attached, no other changes with the code though.
/usr/ports/sysutils/exfetch git:(master+) $ make port-lib-depends-check
/usr/ports/sysutils/exfetch git:(master+) $ echo $?
0
/usr/ports/sysutils/exfetch git:(master+) $ portcheck
sysutils/exfetch
/usr/ports/sysutils/exfetch git:(master+) $ echo $?
0
/usr/ports/sysutils/exfetch git:(master+) $ make test
===> Regression tests for exfetch-1.8
crystal spec --no-color -v -s -t -p --release
Parse: 00:00:00.000176185 ( 0.98MB)
Semantic (top level): 00:00:02.674618217 ( 135.68MB)
Semantic (new): 00:00:00.007781927 ( 135.68MB)
Semantic (type declarations): 00:00:00.118513896 ( 135.68MB)
Semantic (abstract def check): 00:00:00.066616403 ( 135.68MB)
Semantic (restrictions augmenter): 00:00:00.023262623 ( 135.68MB)
Semantic (ivars initializers): 00:00:01.585014105 ( 191.75MB)
Semantic (cvars initializers): 00:00:00.044090075 ( 199.75MB)
Semantic (main): 00:00:01.178005069 ( 239.87MB)
Semantic (cleanup): 00:00:00.002041233 ( 239.87MB)
Semantic (recursive struct check): 00:00:00.003412651 ( 239.87MB)
Codegen (crystal): 00:00:01.727356849 ( 263.87MB)
Codegen (bc+obj): 00:00:38.358516786 ( 263.87MB)
Codegen (linking): 00:00:01.185401074 ( 263.87MB)
Macro runs:
-
/mnt/MEDIA/portdev/pobj/exfetch-1.8/exfetch/lib/baked_file_system/src/loader.cr:
reused previous compilation (00:00:00.033230594)
Codegen (bc+obj):
- no previous .o files were reused
Exfetch::CLI
.colorize
wraps text in ansi codes
handles bright colors
.render
renders output string
Exfetch::Manip
.bytes_to_mebibytes
converts bytes to mebibytes string
.sanitize
removes newlines and strips whitespace
.has_command?
returns true for existing commands
returns false for non-existing commands
.run_command
runs a command and returns output
returns empty string on failure
.dir_size
returns 0 for non-existent dir
Exfetch::Options
.parse
parses default options
parses flags
parses color argument
parses padding
Exfetch::Resource
.get_short_info
returns basic info
.get_uptime
parses uptime correctly when mocked
.get_shell
returns shell basename
.get_cpu
returns cpu info
Finished in 169.71 milliseconds
18 examples, 0 failures, 0 errors, 0 pending
Execute: 00:00:00.213977030
--
iz (she/her)
> I say mundane things
> so the uninteresting
> just might get noticed.
izder456 (dot) neocities (dot) org
diff --git a/sysutils/exfetch/Makefile b/sysutils/exfetch/Makefile
index 25ae69af7..203d5061e 100644
--- a/sysutils/exfetch/Makefile
+++ b/sysutils/exfetch/Makefile
@@ -1,6 +1,6 @@
COMMENT = shell-extensible fetching program
-DIST_TUPLE += codeberg izder456 exfetch 1.7.2 .
+DIST_TUPLE += codeberg izder456 exfetch 1.8 .
DIST_TUPLE += github schovi baked_file_system \
f4f658812c5b8b404437d8cf34b72a0eb5fe7701 \
lib/baked_file_system
diff --git a/sysutils/exfetch/distinfo b/sysutils/exfetch/distinfo
index 5156f324e..d1fadad2d 100644
--- a/sysutils/exfetch/distinfo
+++ b/sysutils/exfetch/distinfo
@@ -1,6 +1,6 @@
SHA256 (KaneRoot-pledge.cr-602a6e6f395a6ebb5aeae948ee8595407bae4e73.tar.gz) = e1pTNXpiGXUAegoHOhXsBJcldHvgzenC8c7/pDvHTP8=
-SHA256 (izder456-exfetch-1.7.2.tar.gz) = xIFmFqssshpWPIMbMMrCQ0lFlTUDw9qaVqaHqA8CWFw=
+SHA256 (izder456-exfetch-1.8.tar.gz) = GH83o3g+oAeyObfg64OhUT2ei5aJq+qRa5d9htPKPcc=
SHA256 (schovi-baked_file_system-f4f658812c5b8b404437d8cf34b72a0eb5fe7701.tar.gz) = tTPwhaL4SoA31VcKAO5Gj6WSUmMTbAaBgGoCQU6Cj8w=
SIZE (KaneRoot-pledge.cr-602a6e6f395a6ebb5aeae948ee8595407bae4e73.tar.gz) = 4417
-SIZE (izder456-exfetch-1.7.2.tar.gz) = 27481
+SIZE (izder456-exfetch-1.8.tar.gz) = 27762
SIZE (schovi-baked_file_system-f4f658812c5b8b404437d8cf34b72a0eb5fe7701.tar.gz) = 56332