From 65abf4e34102330fce919e933072eba9c45780f7 Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Fri, 6 Mar 2026 13:15:27 +0100 Subject: history stub --- src/run/builtin.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/run/builtin.rs') diff --git a/src/run/builtin.rs b/src/run/builtin.rs index e715bd7..26f90ad 100644 --- a/src/run/builtin.rs +++ b/src/run/builtin.rs @@ -160,3 +160,20 @@ impl Builtin for builtins { writeln!(stdout) } } + +pub struct history; +impl Builtin for history { + fn name(&self) -> &str { + "history" + } + + fn io( + &self, + _args: &[BString], + _stdin: &mut dyn Read, + stdout: &mut dyn Write, + ) -> std::io::Result<()> { + // TODO: add location & time to history to allow better querying + todo!("need session") + } +} -- cgit v1.2.3