Function rename_node_rule

Source
pub fn rename_node_rule(
    old_identifier: &str,
    new_identifier: &str,
) -> Result<()>
Expand description

Renames a Node Rule, updating its associated files and directory structure.

This operation updates:

  • The .aim file name
  • The .jnl journal file name
  • The directory name (if it exists)

§Arguments

  • old_identifier - The current identifier of the Node Rule
  • new_identifier - The new identifier for the Node Rule

§Returns

  • Result<()> - Success or error indicating if the operation completed

§Examples

use aimx::workspace::rename_node_rule;
 
// Rename a node rule
// rename_node_rule("old_name", "new_name")?;