Skip to main content

Crate nb_api

Crate nb_api 

Source
Expand description

Typed Rust interface to the nb note-taking CLI.

Handles notebook qualification, escaping, and output parsing. Wraps the nb CLI as a subprocess, providing async methods for all note-taking operations.

Structs§

Config
Configuration for constructing an NbClient.
NbClient
Client for invoking nb commands.

Enums§

EditMode
Behavior mode for nb edit content updates.
NbError
Errors from nb CLI invocation.
SearchMode
Matching mode for nb search query terms.
TaskStatus
Status filter for nb tasks.

Functions§

derive_git_notebook_name
Derive the notebook name from the current Git repository.
git_rev_parse
Run git rev-parse with the given arguments and return the output as a path.