2021-10-29 21:25:12 +01:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
#include <string>
|
|
|
|
#include <functional>
|
2021-11-19 16:10:07 +00:00
|
|
|
#include <vector>
|
2021-10-29 21:25:12 +01:00
|
|
|
|
|
|
|
std::optional<std::string> readFile(const std::string& name);
|
|
|
|
|
|
|
|
bool isDirectory(const std::string& path);
|
|
|
|
bool traverseDirectory(const std::string& path, const std::function<void(const std::string& name)>& callback);
|
|
|
|
|
|
|
|
std::string joinPaths(const std::string& lhs, const std::string& rhs);
|
|
|
|
std::optional<std::string> getParentPath(const std::string& path);
|
2021-11-19 16:10:07 +00:00
|
|
|
|
|
|
|
std::vector<std::string> getSourceFiles(int argc, char** argv);
|