ecoli_node_cmd(3)
π NAME π
okay so welcome to ecoli_node_cmd(3) from Libecoli, bestie π this page is all about ecoli_node_cmd β a Command node. its whole personality is literally: A node that parses commands using a format string. slay.
β¨ SYNOPSIS β¨
π§ Macros π§
thereβs exactly one macro here and sheβs iconic, no cap:
#define EC_NODE_CMD(args...) __ec_node_cmd(args, EC_VA_END)
πΈ Detailed Description πΈ
okay so repeat after me: A node that parses commands using a format string. thatβs the entire thesis, and honestly? she ate. π
π¦ Configuration Schema π¦
the schema is giving very structured, very demure β here it is in all its exact glory:
schema cmd {
string expr {
description "The expression to match. Supported operators are or '|', list ',', all '&',
many '+', many-or-zero '*', option '[]', group '()'. An identifier
(alphanumeric) can reference a node whose node_id matches. Else it is
interpreted as ec_node_str() matching this string. The ',' operator requires at
least one match, the '&' operator requires all to match (in any order). Example:
command [option] (subset1, subset2) x|y";
}
list children {
description "The list of children nodes.";
node {
description "A child node whose id is referenced in the expression.";
}
}
}
π₯ Macro Definition Documentation π₯
π The EC_NODE_CMD macro π
#define EC_NODE_CMD(args...) __ec_node_cmd(args, EC_VA_END)
Create a command node from a format string. yes bestie, thatβs the whole flex. β¨
The format string describes a command grammar using a simple syntax. Child nodes are passed as variadic arguments and referenced by name in the format string. iykyk.
Example, because we love a visual:
EC_NODE_CMD("mycmd", "show NAME", ec_node_str("NAME", NULL));
Definition at line 30 of file node_cmd.h β iconic behavior, honestly. π
π Author π
Generated automatically by Doxygen for Libecoli from the source code. so yes, the robots made this one, and they ate. π«Ά
xoxo, bestie π this was ecoli_node_cmd(3) from Libecoli β Version 0.11.3, dated Thu Apr 9 2026. periodt. π
π¦ where this page comes from
- epel 9: libecoli-devel 0.11.3-1.el9 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms