From 38e594505bd9095a3c3618b186a29c6eb63972a5 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 15 Apr 2024 05:58:45 +0800 Subject: feat: shell commands support revision (#413) --- src/config/input.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/config/input.rs') diff --git a/src/config/input.rs b/src/config/input.rs index bb2a9fb..eaa567a 100644 --- a/src/config/input.rs +++ b/src/config/input.rs @@ -94,6 +94,14 @@ impl Input { self.data_urls.clone() } + pub fn text(&self) -> String { + self.text.clone() + } + + pub fn set_text(&mut self, text: String) { + self.text = text; + } + pub fn role(&self) -> Option<&Role> { self.context.role.as_ref() } -- cgit v1.2.3