mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 09:57:00 +02:00
As a preparation for the next commit, we now have a reduced version of LibShell which can be used with BuggieBox. That version will not include LibSyntax, LibURL or LibCodeComprehension, which are all quite heavy for BuggieBox to include in its own binary.
22 lines
665 B
C++
22 lines
665 B
C++
/*
|
|
* Copyright (c) 2020-2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/StringView.h>
|
|
#include <LibLine/Editor.h>
|
|
#include <LibLine/Style.h>
|
|
#include <LibShell/Shell.h>
|
|
|
|
namespace Shell {
|
|
|
|
void print_path(StringView path);
|
|
Optional<Line::Style> highlight_runnable(Shell& shell, Shell::RunnablePath& runnable);
|
|
ErrorOr<void> highlight_filesystem_path(StringView path, Line::Editor& editor, Shell& shell, size_t start_offset, size_t end_offset);
|
|
ErrorOr<void> highlight_filesystem_path_without_resolving(StringView realpath, Line::Editor& editor, Shell& shell, size_t start_offset, size_t end_offset);
|
|
|
|
}
|