mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2026-10-28 09:21:00 +00:00
25 lines
545 B
Rust
25 lines
545 B
Rust
// src/cli/event.rs
|
|
use clap::{Subcommand, Args};
|
|
use rusqlite::Connection;
|
|
use crate::cli::Format;
|
|
|
|
#[derive(Subcommand, Debug)]
|
|
pub enum EventCmd {
|
|
Add (ArgsAdd),
|
|
Timeline,
|
|
}
|
|
|
|
#[derive(Args, Debug)]
|
|
pub struct ArgsAdd {
|
|
pub file: String,
|
|
pub date: String,
|
|
pub description: String,
|
|
}
|
|
|
|
pub fn run(cmd: &EventCmd, _conn: &mut Connection, _format: Format) -> anyhow::Result<()> {
|
|
match cmd {
|
|
EventCmd::Add(a) => todo!("event add {:?}", a),
|
|
EventCmd::Timeline => todo!("event timeline"),
|
|
}
|
|
}
|