gr/cli/
cache.rs

1use clap::Parser;
2
3#[derive(Parser)]
4pub struct CacheCommand {
5    #[clap(subcommand)]
6    subcommand: CacheSubcommand,
7}
8
9#[derive(Parser)]
10enum CacheSubcommand {
11    #[clap(name = "info", about = "Get local cache size and location")]
12    Info,
13}
14
15pub enum CacheOptions {
16    Info,
17}
18
19impl From<CacheCommand> for CacheOptions {
20    fn from(options: CacheCommand) -> Self {
21        match options.subcommand {
22            CacheSubcommand::Info => CacheOptions::Info,
23        }
24    }
25}