Skip to main content

Crate trash_cli_core

Crate trash_cli_core 

Source
Expand description

Shared Rust foundation for trash-cli command migration. This crate intentionally stays dependency-light and focuses on stable, reusable primitives that can be consumed by command-specific crates.

Re-exports§

pub use errors::CoreError;
pub use errors::Result;
pub use fs::FileSystem;
pub use fs::RealFileSystem;
pub use helpers::build_unique_basename;
pub use helpers::parse_trash_datetime;
pub use helpers::print_size;
pub use helpers::sanitize_user_path;
pub use helpers::serialize_system_time;
pub use helpers::TRASHINFO_EXTENSION;
pub use helpers::TRASHINFO_TIME_FORMAT;
pub use models::CommandContext;
pub use models::CommandKind;
pub use models::CommandOutcome;
pub use models::CommandOutput;
pub use models::ExitStatusLike;
pub use models::SkipReason;
pub use models::TrashCommand;
pub use models::TrashDirectory;
pub use models::TrashedItem;

Modules§

errors
fs
helpers
Shared utility helpers for migration-aware command behavior.
models
prelude
Re-export a small stable API surface for command crates.