embeddenator_cli/commands/
update.rs1use anyhow::Result;
7use std::path::PathBuf;
8
9pub fn handle_update_add(
10 _engram: PathBuf,
11 _manifest: PathBuf,
12 _file: PathBuf,
13 _logical_path: Option<String>,
14 verbose: bool,
15) -> Result<()> {
16 if verbose {
17 println!(
18 "Embeddenator v{} - Incremental Add",
19 env!("CARGO_PKG_VERSION")
20 );
21 println!("===================================");
22 }
23
24 anyhow::bail!(
27 "Incremental add operation not yet implemented in embeddenator-fs component.\n\
28 This feature requires the add_file() method to be added to EmbrFS.\n\
29 Use full re-ingestion as a workaround."
30 )
31}
32
33pub fn handle_update_remove(
34 _engram: PathBuf,
35 _manifest: PathBuf,
36 _path: String,
37 verbose: bool,
38) -> Result<()> {
39 if verbose {
40 println!(
41 "Embeddenator v{} - Incremental Remove",
42 env!("CARGO_PKG_VERSION")
43 );
44 println!("======================================");
45 }
46
47 anyhow::bail!(
49 "Incremental remove operation not yet implemented in embeddenator-fs component.\n\
50 This feature requires the remove_file() method to be added to EmbrFS.\n\
51 Use full re-ingestion as a workaround."
52 )
53}
54
55pub fn handle_update_modify(
56 _engram: PathBuf,
57 _manifest: PathBuf,
58 _file: PathBuf,
59 _logical_path: Option<String>,
60 verbose: bool,
61) -> Result<()> {
62 if verbose {
63 println!(
64 "Embeddenator v{} - Incremental Modify",
65 env!("CARGO_PKG_VERSION")
66 );
67 println!("======================================");
68 }
69
70 anyhow::bail!(
72 "Incremental modify operation not yet implemented in embeddenator-fs component.\n\
73 This feature requires the modify_file() method to be added to EmbrFS.\n\
74 Use full re-ingestion as a workaround."
75 )
76}
77
78pub fn handle_update_compact(_engram: PathBuf, _manifest: PathBuf, verbose: bool) -> Result<()> {
79 if verbose {
80 println!(
81 "Embeddenator v{} - Compact Engram",
82 env!("CARGO_PKG_VERSION")
83 );
84 println!("===================================");
85 }
86
87 anyhow::bail!(
89 "Compact operation not yet implemented in embeddenator-fs component.\n\
90 This feature requires the compact() method to be added to EmbrFS.\n\
91 Use full re-ingestion as a workaround."
92 )
93}