mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37: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.
33 lines
581 B
C++
33 lines
581 B
C++
/*
|
|
* Copyright (c) 2020-2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <AK/Format.h>
|
|
#include <LibShell/Highlight.h>
|
|
|
|
namespace Shell {
|
|
|
|
void Shell::print_path(StringView path)
|
|
{
|
|
out("{}", path);
|
|
}
|
|
|
|
Optional<Line::Style> highlight_runnable(Shell&, Shell::RunnablePath&)
|
|
{
|
|
return {};
|
|
}
|
|
|
|
ErrorOr<void> highlight_filesystem_path(StringView, Line::Editor&, Shell&, size_t, size_t)
|
|
{
|
|
return {};
|
|
}
|
|
|
|
ErrorOr<void> highlight_filesystem_path_without_resolving(StringView, Line::Editor&, Shell&, size_t, size_t)
|
|
{
|
|
return {};
|
|
}
|
|
|
|
}
|