Skip to main content

get

Function get 

Source
pub fn get(dir: &Path, symbol_or_path: &str) -> Result<String>
Expand description

Retrieves the raw source content of a symbol (using :: notation) or a file path from the cache.

Returns an error if the symbol or path is not found; run index first to populate the cache.

§Security

Path lookup is performed against the SQLite cache only — no filesystem reads occur. codebones.db is a trust boundary: callers must ensure the database file has appropriate filesystem permissions and has not been tampered with.