chore: auto-commit (6 archivos)
- CMakeLists.txt - main.cpp - data_collectors.cpp - data_collectors.h - runner.cpp - runner.h Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct Collector {
|
||||
std::string id; // basename del directorio (ej. "api_hn_top")
|
||||
std::string name; // del manifest (fallback id)
|
||||
std::string description; // del manifest
|
||||
std::string dir; // path absoluto al directorio del collector
|
||||
std::string run_py; // path absoluto al run.py
|
||||
bool has_run = false;
|
||||
};
|
||||
|
||||
// Enumera <collectors_root>/*/manifest.yaml + run.py.
|
||||
// Parsing manifest minimo: solo lee `id`, `name:`, `description:` por linea (sin yaml-cpp).
|
||||
bool collectors_discover(const std::string& collectors_root,
|
||||
std::vector<Collector>& out);
|
||||
Reference in New Issue
Block a user