A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::discover::Options Struct Reference

What to read and what to leave alone. More...

#include <cpp/a11/flow/discover.h>

Static Public Member Functions

static Options Default ()
 Options with the defaults filled in.
 

Public Attributes

std::vector< std::string > skip_directories
 Directory names never descended into.
 
size_t max_file_bytes = 1u << 20
 The largest file read.
 
size_t max_files = 20000
 The most files read in one scan.
 

Detailed Description

What to read and what to leave alone.

Member Function Documentation

◆ Default()

Options a11::flow::discover::Options::Default ( )
static

Options with the defaults filled in.

Member Data Documentation

◆ max_file_bytes

size_t a11::flow::discover::Options::max_file_bytes = 1u << 20

The largest file read.

A generated or vendored file of several megabytes is not where anybody declares an action, and reading one on every save is what makes an editor feel slow.

◆ max_files

size_t a11::flow::discover::Options::max_files = 20000

The most files read in one scan.

◆ skip_directories

std::vector<std::string> a11::flow::discover::Options::skip_directories

Directory names never descended into.

Defaults to the ones that hold somebody else's code or a build of this one: node_modules, .venv, build, cmake-build-*, dist, .git, __pycache__.


The documentation for this struct was generated from the following files: