From a79f4e4d8cb35b213164e3e998b8c3dc925b84f1 Mon Sep 17 00:00:00 2001 From: Atsukoro1 Date: Thu, 1 Dec 2022 17:02:11 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Progress?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 -- src/main.rs | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 479ade7..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,2 +0,0 @@ -# ponyfetch -🐎 Just a simple cross-platform neofetch for all the bronies out there. diff --git a/src/main.rs b/src/main.rs index 3bfb8c0..1b152b3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,18 @@ mod helpers; mod system; -struct Action<'a> { +pub enum ActionType { + HostInfo, + Delimiter, + Details +} + +pub struct Action<'a> { name: &'a str, func: fn() -> String, } -static ACTIONS: [Action; 8] = [ +const ACTIONS: [Action; 8] = [ Action { name: "Distro", func: system::host::get_distro,