implemented writing default configuration

This commit is contained in:
2025-02-01 16:02:36 +01:00
parent 88db002985
commit 7796a4d1a8
6 changed files with 177 additions and 31 deletions
+10
View File
@@ -30,6 +30,9 @@ pub enum Action {
/// navigate to bookmark and add current path to the stack
bookmark(BookmarkArgs),
/// display current configuartion (mostly for debugging)
configuration(ConfigArgs),
}
#[derive(Debug, Clone, Args)]
@@ -117,6 +120,13 @@ pub struct BookmarkSubArgs {
pub path: Option<PathBuf>,
}
#[derive(Debug, Clone, Args)]
pub struct ConfigArgs {
/// convert styles to ansi escape sequences
#[arg(short, long)]
pub convert: Option<bool>,
}
/// empty struct for subcommands with no arguments
#[derive(Debug, Clone, Args)]
pub struct EmptyArgs {}