docs: Add Rustdoc for modules, functions, and structs
Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
@@ -8,6 +8,21 @@ use clap::Command;
|
||||
use log::warn;
|
||||
use rusqlite::Connection;
|
||||
|
||||
/// Handles the delete mode: removes items by ID from the database and storage.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `_cmd` - Clap command for error handling (unused).
|
||||
/// * `_settings` - Global settings (unused).
|
||||
/// * `_config` - Configuration settings (unused).
|
||||
/// * `ids` - List of item IDs to delete.
|
||||
/// * `_tags` - Tags (unused, as delete only supports IDs).
|
||||
/// * `conn` - Database connection.
|
||||
/// * `data_path` - Path to data directory for storage cleanup.
|
||||
///
|
||||
/// # Returns
|
||||
///
|
||||
/// `Result<()>` on success, or an error if deletion fails.
|
||||
pub fn mode_delete(
|
||||
_cmd: &mut Command,
|
||||
_settings: &config::Settings,
|
||||
|
||||
Reference in New Issue
Block a user