Revision 725270cb nest/cli.c

View differences:

nest/cli.c
35 35
 * on the current state of command processing.
36 36
 *
37 37
 * The CLI commands are declared as a part of the configuration grammar
38
 * by using the |CF_CLI| macro. When a command is received, it's processed
38
 * by using the |CF_CLI| macro. When a command is received, it is processed
39 39
 * by the same lexical analyzer and parser as used for the configuration, but
40 40
 * it's switched to a special mode by prepending a fake token to the text,
41 41
 * so that it uses only the CLI command rules. Then the parser invokes
42 42
 * an execution routine corresponding to the command, which either constructs
43
 * the whole reply and returns back or (in case it expects the reply will be long)
43
 * the whole reply and returns it back or (in case it expects the reply will be long)
44 44
 * it prints a partial reply and asks the CLI module (using the @cont hook)
45 45
 * to call it again when the output is transferred to the user.
46 46
 *

Also available in: Unified diff