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 color: bool,
16 },
17 /// Parse and display crontab from a file
18 File {
19 path: PathBuf,
20 verbose: bool,
21 color: bool,
22 },
23 /// Parse and display current user's crontab
24 Crontab { verbose: bool, color: bool },
25}