implemented writing default configuration
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user