aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl-interacter.hh
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-03-09 23:59:50 -0800
committerJade Lovelace <lix@jade.fyi>2024-03-11 14:14:43 -0700
commitbe2b87ed4dda865406096196804b784f4c293687 (patch)
treec4793e79fcbb4e3c29ad27931a072969c75b054d /src/libcmd/repl-interacter.hh
parentb06a39211460033305c5264a456161c75ed88425 (diff)
add automated usage mode to the repl
This is definitely not a stable thing, but it does feel slightly crimes to put it as an experimental feature. Shrug, up for bikeshedding. Change-Id: I6ef176e3dee6fb1cac9c0a7a60d553a2c63ea728
Diffstat (limited to 'src/libcmd/repl-interacter.hh')
-rw-r--r--src/libcmd/repl-interacter.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libcmd/repl-interacter.hh b/src/libcmd/repl-interacter.hh
index cc70efd07..c31b1a1e6 100644
--- a/src/libcmd/repl-interacter.hh
+++ b/src/libcmd/repl-interacter.hh
@@ -45,4 +45,13 @@ public:
virtual ~ReadlineLikeInteracter() override;
};
+class AutomationInteracter : public virtual ReplInteracter
+{
+public:
+ AutomationInteracter() = default;
+ virtual Guard init(detail::ReplCompleterMixin * repl) override;
+ virtual bool getLine(std::string & input, ReplPromptType promptType) override;
+ virtual ~AutomationInteracter() override = default;
+};
+
};