summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-15 05:58:45 +0800
committerGitHub <noreply@github.com>2024-04-15 05:58:45 +0800
commit38e594505bd9095a3c3618b186a29c6eb63972a5 (patch)
tree1acc6b46d4ef1bef94e197dd0488c228b5bd888f /src/config
parent6dc332930bf2e6d31c937d87e7ac7ae14c53b7c6 (diff)
downloadaichat-38e594505bd9095a3c3618b186a29c6eb63972a5.tar.gz
feat: shell commands support revision (#413)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/input.rs8
1 files changed, 8 insertions, 0 deletions
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()
}