ecoli_node_cmd - Man Page

Name

ecoli_node_cmd — Command node

— A node that parses commands using a format string.  

Synopsis

Macros

#define EC_NODE_CMD(args...)

Detailed Description

A node that parses commands using a format string.

Configuration Schema

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

#define EC_NODE_CMD( args...)

Value:

__ec_node_cmd(args, EC_VA_END)

Create a command node from a format string.

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.

Example:

EC_NODE_CMD("mycmd", "show NAME", ec_node_str("NAME", NULL));

Definition at line 30 of file node_cmd.h.

Author

Generated automatically by Doxygen for Libecoli from the source code.

Referenced By

The man page EC_NODE_CMD(3) is an alias of ecoli_node_cmd(3).

Version 0.11.3 Libecoli