-
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
450 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
use clap::Parser; | ||
|
||
/// The account name argument parser | ||
/// The account name argument parser. | ||
#[derive(Debug, Parser)] | ||
pub struct AccountNameArg { | ||
/// The name of the account | ||
/// The name of the account. | ||
/// | ||
/// The account names are taken from the table at the root level | ||
/// of your TOML configuration file. | ||
#[arg(value_name = "ACCOUNT")] | ||
/// An account name corresponds to an entry in the table at the | ||
/// root level of your TOML configuration file. | ||
#[arg(name = "account_name", value_name = "ACCOUNT")] | ||
pub name: String, | ||
} | ||
|
||
/// The account name flag parser | ||
/// The account name flag parser. | ||
#[derive(Debug, Parser)] | ||
pub struct AccountNameFlag { | ||
/// Override the default account | ||
#[arg( | ||
long = "account", | ||
short = 'a', | ||
name = "account-name", | ||
value_name = "NAME", | ||
global = true | ||
)] | ||
/// Override the default account. | ||
/// | ||
/// An account name corresponds to an entry in the table at the | ||
/// root level of your TOML configuration file. | ||
#[arg(long = "account", short = 'a', global = true)] | ||
#[arg(name = "account_name", value_name = "NAME")] | ||
pub name: Option<String>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
use clap::Parser; | ||
|
||
/// The disable cache flag parser | ||
/// The disable cache flag parser. | ||
#[derive(Debug, Parser)] | ||
pub struct DisableCacheFlag { | ||
/// Disable any sort of cache | ||
pub struct CacheDisableFlag { | ||
/// Disable any sort of cache. | ||
/// | ||
/// The action depends on commands it apply on. For example, when | ||
/// listing envelopes using the IMAP backend, this flag will | ||
/// ensure that envelopes are fetched from the IMAP server and not | ||
/// from the synchronized local Maildir. | ||
#[arg( | ||
long = "disable-cache", | ||
alias = "no-cache", | ||
name = "disable-cache", | ||
global = true | ||
)] | ||
/// ensure that envelopes are fetched from the IMAP server rather | ||
/// than the synchronized local Maildir. | ||
#[arg(long = "disable-cache", alias = "no-cache", global = true)] | ||
#[arg(name = "cache_disable")] | ||
pub disable: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
use clap::Parser; | ||
|
||
/// The envelope id argument parser | ||
/// The envelope id argument parser. | ||
#[derive(Debug, Parser)] | ||
pub struct EnvelopeIdArg { | ||
/// The envelope id | ||
/// The envelope id. | ||
#[arg(value_name = "ID", required = true)] | ||
pub id: usize, | ||
} | ||
|
||
/// The envelopes ids arguments parser | ||
/// The envelopes ids arguments parser. | ||
#[derive(Debug, Parser)] | ||
pub struct EnvelopeIdsArgs { | ||
/// The list of envelopes ids | ||
/// The list of envelopes ids. | ||
#[arg(value_name = "ID", required = true)] | ||
pub ids: Vec<usize>, | ||
} |
Oops, something went wrong.