mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 21:37:55 +08:00
refactor message with clap derive api (part 1)
This commit is contained in:
@@ -16,3 +16,19 @@ pub struct FolderNameOptionalArg {
|
||||
#[arg(name = "folder-name", value_name = "FOLDER", default_value = DEFAULT_INBOX_FOLDER)]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
/// The source folder name argument parser
|
||||
#[derive(Debug, Parser)]
|
||||
pub struct SourceFolderNameArg {
|
||||
/// The name of the source folder
|
||||
#[arg(name = "from-folder-name", value_name = "FROM")]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
/// The target folder name argument parser
|
||||
#[derive(Debug, Parser)]
|
||||
pub struct TargetFolderNameArg {
|
||||
/// The name of the target folder
|
||||
#[arg(name = "to-folder-name", value_name = "TO")]
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user