Manager: Add target filtering to Dotfile::list()

This commit is contained in:
Riyyi
2021-09-20 18:18:31 +02:00
parent 1893f08ea8
commit f8ccfe79b8
2 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -29,13 +29,14 @@ public:
std::string path;
};
static void list();
static void list(const std::vector<std::string>& targets = {});
static void setWorkingDirectory(std::filesystem::path directory) { s_workingDirectory = directory; }
static void setExcludePaths(const std::vector<ExcludePath>& excludePaths) { s_excludePaths = excludePaths; }
private:
static bool filter(const std::filesystem::path& path);
static bool include(const std::filesystem::path& path, const std::vector<std::string>& targets);
static std::vector<ExcludePath> s_excludePaths;
static std::filesystem::path s_workingDirectory;