Files
keep/src/lib.rs
Andrew Phillips a528f47a14 fix: Declare filter_plugin module before its usage
Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
2025-09-10 10:39:06 -03:00

50 lines
1.1 KiB
Rust

#![deny(clippy::all)]
#![deny(unsafe_code)]
#![allow(unused_imports)]
// Re-export modules for testing
pub mod common;
pub mod compression_engine;
pub mod config;
pub mod services;
pub mod db;
#[cfg(feature = "server")]
pub mod meta_plugin;
pub mod modes;
pub mod plugins;
pub mod args;
pub mod parser;
pub mod filter_plugin;
// Re-export Args struct for library usage
pub use args::Args;
// Re-export PIPESIZE constant
pub use common::PIPESIZE;
// Import all filter plugins to ensure they register themselves
#[allow(unused_imports)]
use filter_plugin::{
head, tail, skip, grep, strip_ansi
};
// Import all meta plugins to ensure they register themselves
#[allow(unused_imports)]
use meta_plugin::{
cwd, text, user, shell, shell_pid, keep_pid, digest,
read_time, read_rate, hostname, exec, env
};
#[cfg(feature = "magic")]
#[allow(unused_imports)]
use meta_plugin::magic_file;
// Initialize plugins at library load time
pub fn init_plugins() {
// This will be expanded in Step 3 implementation
// For now, the ctors handle registration
}
#[cfg(test)]
mod tests;