Skip to main content

rotate_backup/execute/
mod.rs

1use crate::prelude::rotate::*;
2use crate::prelude::*;
3use alloc::format;
4use alloc::string::String;
5use alloc::{vec, vec::Vec};
6use anyhow::Context;
7use chrono::NaiveDate;
8
9#[cfg(feature = "std")]
10use std::path::PathBuf;
11#[cfg(not(feature = "std"))]
12type PathBuf = String;
13use crate::execute::debug::DebugCommand;
14#[cfg(feature = "std")]
15use std::path::Path;
16
17#[cfg(not(feature = "std"))]
18type Path = str;
19
20#[cfg(not(feature = "std"))]
21type OsStr = String;
22
23pub mod debug;
24pub mod rotate;
25
26#[cfg_attr(feature = "cli", derive(clap::Parser))]
27pub struct MainCommand {
28    #[cfg_attr(feature = "cli", command(subcommand))]
29    pub sub_commands: SubCommands,
30}
31
32#[cfg_attr(feature = "cli", derive(clap::Subcommand))]
33pub enum SubCommands {
34    Rotate(RotateCommand),
35    Debug(DebugCommand),
36}