Function add_node_rule

Source
pub fn add_node_rule(identifier: &str) -> Result<()>
Expand description

Adds a new Node Rule to the workspace, creating the necessary file structure.

This function creates the underlying file structure for a workflow node by:

  1. Creating the appropriate directory structure
  2. Creating an empty .aim file if it doesn’t exist

Node Rules represent workflow nodes that can contain their own rules and sub-nodes in a hierarchical structure.

§Arguments

  • identifier - The identifier for the new Node Rule

§Returns

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

§Examples

use aimx::workspace::add_node_rule;
 
// Add a new node rule to the workspace
// add_node_rule("new_workflow_node")?;