himalaya 1.0.0-beta

CLI to manage emails
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Parser;

/// The disable cache flag parser.
#[derive(Debug, Default, Parser)]
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 rather
    /// than the synchronized local Maildir.
    #[arg(long = "disable-cache", alias = "no-cache", global = true)]
    #[arg(name = "cache_disable")]
    pub disable: bool,
}