From 23ee04fffe4bdf4b8c34603e4b191d7cc308051b Mon Sep 17 00:00:00 2001 From: lukeflo Date: Fri, 25 Oct 2024 12:48:19 +0200 Subject: Inegrate new command-action driven structure - Map keys to actions to commands - allows for easily adding config file support - restructure folders/files - implement own input mode - rewrite UI rendering to make it better editable --- src/cliargs.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/cliargs.rs') diff --git a/src/cliargs.rs b/src/cliargs.rs index d3a4652..9de2e7f 100644 --- a/src/cliargs.rs +++ b/src/cliargs.rs @@ -15,9 +15,9 @@ // along with this program. If not, see . ///// -use std::path::PathBuf; - use sarge::prelude::*; +use std::env; +use std::path::PathBuf; sarge! { // Name of the struct @@ -79,11 +79,14 @@ pub fn version_func() -> String { "\ {} {} {} -{}", +{} + +Target Triple: {}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"), env!("CARGO_PKG_AUTHORS"), - env!("CARGO_PKG_LICENSE") + env!("CARGO_PKG_LICENSE"), + env!("TARGET") ); version } -- cgit v1.2.3