Files
tessesframework/apps/twatch.cpp
Mike Nolan 8413c67ec6
Some checks failed
Build and Deploy on Tag / 🔨 Build for Arch Linux/Static Builds (push) Failing after 45s
Build and Deploy on Tag / 🔨 Build win32 and update the tap 🍺 (push) Has been cancelled
Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin
2026-05-27 03:02:16 -05:00

22 lines
647 B
C++

#include <TessesFramework/TessesFramework.hpp>
using namespace Tesses::Framework;
using namespace Tesses::Framework::Filesystem;
using namespace Tesses::Framework::Filesystem::Literals;
int main(int argc, char **argv) {
TF_Init();
if (argc < 2) {
std::cout << "USAGE " << argv[0] << " <file|dir>" << std::endl;
return 1;
}
auto watcher = FSWatcher::Create(LocalFS, VFSPath{argv[1]});
watcher->events = FSWatcherEventType::All;
watcher->event = [](FSWatcherEvent &evt) -> void {
std::cout << evt.ToString() << std::endl;
};
watcher->SetEnabled(true);
TF_RunEventLoop();
return 0;
}