HorlogeSkynet / archey4

:computer: Maintained fork of the original Archey (Linux) system tool
https://git.io/archey4
GNU General Public License v3.0
295 stars 37 forks source link

Reworks the `Output` class #64

Closed ingrinder closed 4 years ago

ingrinder commented 4 years ago

Description

  1. Adds an Entry base class for all of our entries.
  2. Reworks output and logos to accept any number of entries.
  3. Adds text-wrapping feature/bugfix.

Reason and / or context

  1. Allows entries to override their output method to output more than one line (or any output at all) if required.
  2. We need to be able to accept >1 line per entry for the above if we add multi-line entries 😃
  3. Resolves #63.

How has this been tested ?

On my local system, and using the added unit-tests.

Types of changes :

Checklist :

@HorlogeSkynet I'd rather you look over this before I go merging stuff into master 😁. Feel free to modify any of it, I feel like the output wrapping is a little messy but I'd like a second set of eyes 👀, after all I have been trying to write those ~30 lines for ~2 hours 😢