From c1fb3cb3ba73a297938e081b9276bb10cb9b6901 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Tue, 12 Aug 2025 14:08:59 -0300 Subject: [PATCH] docs: improve documentation for ProgramWriter and plugins module Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/plugins.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/plugins.rs b/src/plugins.rs index d38545c..ae934ef 100644 --- a/src/plugins.rs +++ b/src/plugins.rs @@ -1,6 +1,16 @@ -pub(crate) use std::io::Write; +//! Shared plugin utilities for the keep application. +//! +//! This module provides common functionality that can be used by different +//! plugin implementations throughout the application. +use std::io::Write; + +/// A wrapper around a child process's stdin that implements the Write trait. +/// +/// This struct allows writing data to an external process's standard input +/// in a way that's compatible with Rust's I/O traits. pub struct ProgramWriter { + /// The stdin handle of a spawned child process pub stdin: std::process::ChildStdin, }