Files
serenity/Userland/Libraries/LibShell/Highlight.h
Liav A. 20982a02d5 Userland: Declare a reduced version of LibShell
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.
2024-10-04 10:56:27 +02:00

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);
}