Newer
Older
minerva / Userland / Utilities / pwd.cpp
@minerva minerva on 13 Jul 354 bytes Initial commit
/*
 * Copyright (c) 2021, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <AK/ByteString.h>
#include <AK/Format.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>

ErrorOr<int> minerva_main(Main::Arguments)
{
    TRY(Core::System::pledge("rpath stdio"));
    outln(TRY(Core::System::getcwd()));
    return 0;
}