added function to wrap debug messages in an echo command

implemented formatted printing of stack and bookmarks
This commit is contained in:
2024-12-15 00:35:09 +01:00
parent c27089124e
commit 77cd64dd60
9 changed files with 234 additions and 95 deletions
+3 -4
View File
@@ -1,3 +1,6 @@
#![allow(dead_code)]
#![allow(non_camel_case_types)]
use clap::{Args, Parser, Subcommand};
use std::path::PathBuf;
@@ -15,7 +18,6 @@ pub struct Arguments {
}
#[derive(Debug, Clone, Subcommand)]
#[allow(non_camel_case_types)]
pub enum Action {
/// navigate to path and add current path to the stack
push(PushArgs),
@@ -55,7 +57,6 @@ pub struct PopArgs {
}
#[derive(Debug, Clone, Subcommand)]
#[allow(non_camel_case_types)]
pub enum PopAction {
/// pop all entries and move to first entry in stack
all,
@@ -77,7 +78,6 @@ pub struct StackArgs {
}
#[derive(Debug, Clone, Subcommand)]
#[allow(non_camel_case_types)]
pub enum StackAction {
/// clear stack
clear(EmptyArgs),
@@ -94,7 +94,6 @@ pub struct BookmarkArgs {
}
#[derive(Debug, Clone, Subcommand)]
#[allow(non_camel_case_types)]
pub enum BookmarkAction {
/// list all bookmarks
list(EmptyArgs),