Hello ports@

I've been feeling really motivated lately with exfetch and added some
new features to it (see changelog below). I want to get this out into
the wild as soon as possible, so people can play around and test it on
their machines.

Here's a simple update to sysutils/exfetch to a tag with these new
features.

Tested on amd64, works good.

I'd like someone to test these new changes before they commit if that's
ok.

/usr/ports/sysutils/exfetch git:(master+) $ make test   
===>  Regression tests for exfetch-1.5.2
crystal spec --no-color -v -s -t -p --release
Parse:                             00:00:00.000283360 (   0.90MB)
Semantic (top level):              00:00:01.564889146 ( 124.76MB)
Semantic (new):                    00:00:00.004672048 ( 124.76MB)
Semantic (type declarations):      00:00:00.084020180 ( 124.76MB)
Semantic (abstract def check):     00:00:00.045015596 ( 124.76MB)
Semantic (restrictions augmenter): 00:00:00.016167933 ( 124.76MB)
Semantic (ivars initializers):     00:00:00.933157956 ( 196.82MB)
Semantic (cvars initializers):     00:00:00.023979597 ( 196.82MB)
Semantic (main):                   00:00:00.734872077 ( 228.95MB)
Semantic (cleanup):                00:00:00.001088280 ( 228.95MB)
Semantic (recursive struct check): 00:00:00.002413409 ( 228.95MB)
Codegen (crystal):                 00:00:00.943954401 ( 260.95MB)
Codegen (bc+obj):                  00:00:24.314646013 ( 260.95MB)
Codegen (linking):                 00:00:00.853759568 ( 260.95MB)
                                          
Macro runs:
 -
/usr/ports/pobj/exfetch-1.5.2/exfetch/lib/baked_file_system/src/loader.cr:
reused previous compilation (00:00:00.023271315)

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 13.04 milliseconds
18 examples, 0 failures, 0 errors, 0 pending
Execute: 00:00:00.059692262

Changelog:
* Since(1.5.1)

Misc Changes:

Optimizations:

Bugfixes:

New features:
- Added -T and --text-only options to disable ansi escape seqences
- Added -f LINES and --ascii-offset=LINES options to offset ASCII by
LINES

-- 
iz (she/her)

> i like to say mundane things,
> there are too many uninteresting things
> that go unnoticed.

izder456 (dot) neocities (dot) org
diff --git sysutils/exfetch/Makefile sysutils/exfetch/Makefile
index 100f8a5303a..407f545b7f6 100644
--- sysutils/exfetch/Makefile
+++ sysutils/exfetch/Makefile
@@ -1,6 +1,6 @@
 COMMENT =	shell-extensible fetching program
 
-DIST_TUPLE +=	codeberg izder456 exfetch 1.5.1 .
+DIST_TUPLE +=	codeberg izder456 exfetch 1.5.2 .
 DIST_TUPLE +=	github schovi baked_file_system \
 		f4f658812c5b8b404437d8cf34b72a0eb5fe7701 \
 		lib/baked_file_system
diff --git sysutils/exfetch/distinfo sysutils/exfetch/distinfo
index 6ee6b1366c2..bbf88c0dcba 100644
--- sysutils/exfetch/distinfo
+++ sysutils/exfetch/distinfo
@@ -1,4 +1,4 @@
-SHA256 (izder456-exfetch-1.5.1.tar.gz) = NytRcCSTrHGXVT4zZWg8fDPyDHUBbL5ixujT4Lobzi8=
+SHA256 (izder456-exfetch-1.5.2.tar.gz) = 2/HQL10cApDRyvFDfAs3xrV8LpBFE6AwV82gPsDSmFY=
 SHA256 (schovi-baked_file_system-f4f658812c5b8b404437d8cf34b72a0eb5fe7701.tar.gz) = tTPwhaL4SoA31VcKAO5Gj6WSUmMTbAaBgGoCQU6Cj8w=
-SIZE (izder456-exfetch-1.5.1.tar.gz) = 25713
+SIZE (izder456-exfetch-1.5.2.tar.gz) = 25959
 SIZE (schovi-baked_file_system-f4f658812c5b8b404437d8cf34b72a0eb5fe7701.tar.gz) = 56332

Reply via email to