cron_when/cli/actions/
mod.rs

1pub mod crontab;
2pub mod file;
3pub mod single;
4
5use std::path::PathBuf;
6
7/// Represents all possible actions the CLI can perform
8#[derive(Debug)]
9pub enum Action {
10    /// Parse and display a single cron expression
11    Single {
12        expression: String,
13        verbose: bool,
14        next: Option<u32>,
15    },
16    /// Parse and display crontab from a file
17    File { path: PathBuf, verbose: bool },
18    /// Parse and display current user's crontab
19    Crontab { verbose: bool },
20}