1pub mod config;
2pub mod error;
3pub mod macros;
4pub mod source;
5pub mod wall;
6
7use clap::{Parser, Subcommand};
8use std::path::PathBuf;
9
10#[derive(Debug, Parser)]
12#[command(name = "wall")]
13#[command(about = "Wallpaper manager for you", long_about = None)]
14pub struct Cli {
15 #[command(subcommand)]
16 pub command: Commands,
17}
18
19#[derive(Debug, Subcommand)]
20pub enum Commands {
21 #[command(arg_required_else_help = true)]
23 Set {
24 path: PathBuf,
26 },
27
28 Random {
30 path: Option<PathBuf>,
32 },
33
34 Install {
36 url: Option<String>,
38 },
39}