aboutsummaryrefslogtreecommitdiffstats
path: root/nest/cli.c
Commit message (Collapse)AuthorAgeFilesLines
* Small correction to va_start/va_end in cli_printf (va_end was missing).Martin Mares2004-05-311-1/+2
| | | | (Andreas)
* Fixes for the programmer's manual.Martin Mares2000-06-081-2/+2
|
* Fixes to the progdoc.Martin Mares2000-06-071-4/+4
|
* Spelling fixes to progdoc.Martin Mares2000-06-071-1/+1
|
* Minor changes to the progdocs.Martin Mares2000-06-031-1/+1
|
* More documentation.Martin Mares2000-06-031-1/+68
|
* Tracing of CLI connections/commands can be now controlledMartin Mares2000-05-291-0/+2
| | | | | by `debug commands <level>' in the configuration. Level 0 means no tracing, 1 means connections only, 2 includes all commands.
* Fixed a couple of nasty CLI bugs which were triggered on long or multi-partMartin Mares2000-04-271-6/+5
| | | | | | | outputs. It took a whole evening to hunt them down, but now the CLI seems to work fine. Now I run three BGP connections with several thousand routes!
* Include "lib/string.h" instead of <string.h>. It should give us bzero()Martin Mares2000-03-311-2/+0
| | | | and other non-portable functions on all systems.
* Enabled short continuations.Martin Mares2000-03-041-2/+0
|
* Implemented echoing of log messages to CLI connections. Just try `echo all'.Martin Mares1999-12-061-24/+145
|
* Reset temporary parser data before parsing, not afterwards. This enablesMartin Mares1999-12-011-1/+1
| | | | | deferred CLI command handlers to store their temporary data in the CLI parsing pool.
* Remember protocol instance in proto_config and use that forMartin Mares1999-11-301-1/+3
| | | | `show protocols <name>'.
* Don't use continuation shortcuts until real client is written.Martin Mares1999-11-301-0/+2
|
* Command line interface now works.Martin Mares1999-11-171-0/+3
|
* Parse CLI commands. We use the same parser as for configuration files (becauseMartin Mares1999-10-311-5/+45
| | | | | | | | | | | | | | | | | | we want to allow filter and similar complex constructs to be used in commands and we should avoid code duplication), only with CLI_MARKER token prepended before the whole input. Defined macro CF_CLI(cmd, args, help) for defining CLI commands in .Y files. The first argument specifies the command itself, the remaining two arguments are copied to the help file (er, will be copied after the help file starts to exist). This macro automatically creates a skeleton rule for the command, you only need to append arguments as in: CF_CLI(STEAL MONEY, <$>, [[Steal <$> US dollars or equivalent in any other currency]]): NUM { cli_msg(0, "%d$ stolen", $3); } ; Also don't forget to reset lexer state between inputs.
* The CLI I/O functions work as desired.Martin Mares1999-10-311-48/+68
|
* First steps of the Command Line Interface: I/O routines.Martin Mares1999-10-291-0/+144