diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-06-23 19:10:41 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-05 15:43:14 +0200 |
commit | 3a37e8c56fc9b30166cb6c1ff76c274fea4b26c2 (patch) | |
tree | 55040903fe19e51ecd3c3bf883703d72a0585f6f /Shell/Shell.h | |
parent | c5d0aa9a448dc1270804164b3cf56deb8f1d81d2 (diff) | |
download | serenity-3a37e8c56fc9b30166cb6c1ff76c274fea4b26c2.zip |
Shell: Provide completions to Tilde and its Juxtaposition.
This commit also removes the ExecutionInputType and directly uses
RefPtr<Shell> instead, since nothing else is needed for execution
purposes, and also makes the shell refuse to evaluate commands with
any sort of syntax error.
Diffstat (limited to 'Shell/Shell.h')
-rw-r--r-- | Shell/Shell.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Shell/Shell.h b/Shell/Shell.h index 6be974027b..18b1c275a7 100644 --- a/Shell/Shell.h +++ b/Shell/Shell.h @@ -92,9 +92,10 @@ public: void highlight(Line::Editor&) const; Vector<Line::CompletionSuggestion> complete(const Line::Editor&); - Vector<Line::CompletionSuggestion> complete_path(const String&, size_t offset); + Vector<Line::CompletionSuggestion> complete_path(const String& base, const String&, size_t offset); Vector<Line::CompletionSuggestion> complete_program_name(const String&, size_t offset); Vector<Line::CompletionSuggestion> complete_variable(const String&, size_t offset); + Vector<Line::CompletionSuggestion> complete_user(const String&, size_t offset); void take_back_stdin(); |