Skip to main content

Module crud

Module crud 

Source
Expand description

cmd_get, cmd_list, cmd_delete migrations. See cli::store for the design pattern.

§Public surface

pub fn cmd_get(db_path: &Path, args: &GetArgs, json_out: bool, out: &mut CliOutput<'_>) -> Result<()>;
pub fn cmd_list(db_path: &Path, args: &ListArgs, json_out: bool, app_config: &config::AppConfig, out: &mut CliOutput<'_>) -> Result<()>;
pub fn cmd_delete(db_path: &Path, args: &DeleteArgs, json_out: bool, cli_agent_id: Option<&str>, out: &mut CliOutput<'_>) -> Result<()>;

Structs§

DeleteArgs
GetArgs
ListArgs

Functions§

cmd_delete
delete handler.
cmd_get
get handler. Looks up by full id then prefix; prints memory + links.
cmd_list
list handler.