pub enum Commands {
Show 20 variants
Init {
force: bool,
},
Status,
Reset {
yes: bool,
},
Load {
file: PathBuf,
name: Option<String>,
chunker: String,
chunk_size: usize,
overlap: usize,
},
ListBuffers,
ShowBuffer {
buffer: String,
chunks: bool,
},
DeleteBuffer {
buffer: String,
yes: bool,
},
Peek {
buffer: String,
start: usize,
end: Option<usize>,
},
Grep {
buffer: String,
pattern: String,
max_matches: usize,
window: usize,
ignore_case: bool,
},
ChunkIndices {
buffer: String,
chunk_size: usize,
overlap: usize,
},
WriteChunks {
buffer: String,
out_dir: PathBuf,
chunk_size: usize,
overlap: usize,
prefix: String,
},
AddBuffer {
name: String,
content: Option<String>,
},
UpdateBuffer {
buffer: String,
content: Option<String>,
embed: bool,
strategy: String,
chunk_size: usize,
overlap: usize,
},
ExportBuffers {
output: Option<PathBuf>,
pretty: bool,
},
Variable {
name: String,
value: Option<String>,
delete: bool,
},
Global {
name: String,
value: Option<String>,
delete: bool,
},
Search {
query: String,
top_k: usize,
threshold: f32,
mode: String,
rrf_k: u32,
buffer: Option<String>,
preview: bool,
preview_len: usize,
},
Aggregate {
buffer: Option<String>,
min_relevance: String,
group_by: String,
sort_by: String,
output_buffer: Option<String>,
},
Dispatch {
buffer: String,
batch_size: usize,
workers: Option<usize>,
query: Option<String>,
mode: String,
threshold: f32,
},
Chunk(ChunkCommands),
}Expand description
Available CLI commands.
Variants§
Init
Initialize the RLM database.
Creates the database file and schema if they don’t exist.
Status
Show current RLM state status.
Reset
Reset RLM state (delete all data).
Load
Load a context file into a buffer.
Fields
ListBuffers
List all buffers.
ShowBuffer
Show buffer details.
DeleteBuffer
Delete a buffer.
Peek
Peek at buffer content.
Fields
Grep
Search buffer content with regex.
Fields
ChunkIndices
Get chunk indices for a buffer.
Fields
WriteChunks
Write chunks to files.
Fields
AddBuffer
Add text to a buffer (intermediate results).
Fields
UpdateBuffer
Update an existing buffer with new content.
Re-chunks the buffer and incrementally updates embeddings.
Fields
ExportBuffers
Export all buffers to a file.
Fields
Variable
Set or get context variables.
Fields
Global
Set or get global variables.
Fields
Search
Search chunks using hybrid semantic + BM25 search.
Returns chunk IDs and scores. Use chunk get <id> to retrieve content.
Fields
Aggregate
Aggregate findings from analyst subagents.
Reads JSON findings from stdin or a buffer, groups by relevance, deduplicates, and outputs a synthesizer-ready report.
Fields
Dispatch
Dispatch chunks for parallel subagent processing.
Splits chunks into batches suitable for parallel subagent analysis. Returns batch assignments with chunk IDs and metadata.
Fields
Chunk(ChunkCommands)
Chunk operations (get, list, embed).
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more