Skip to content
suit Documentation
Login

Documentation

#ifndef SUIT_SCAN_H
#define SUIT_SCAN_H

#include "project.h"

// Find the projects under ROOTS and match each to its remote key (docs/projects.md).
// OUT is emptied first and gets one entry per project folder and per worktree.
// SET's keys, by path, replace what the scan reads. A folder suit cannot read is
// skipped with a note on stderr. Returns 0, or 1 after saying why OUT filled up.
int scan_projects(const Roots *roots, const Projects *set, Projects *out);

constexpr int SCAN_DEPTH = 4;  // folders below a root that are looked in

#endif