CLI: Improved auto-completion behavior
Auto-complete keywords (for, where, filter, ...) and symbol names (names of protocols, tables, ...). Client can request daemon for list of all symbols using new cli command `refresh symbols`. Next changes: - Behavior is configured by *.Y files using flags CLI_SF_* - The file doc/reply_codes was moved to header file client/reply_codes.h. - Share birdcl input_read() function code for birdc non-interactive mode. - BIRD daemon notifies the client about new symbol set. - BIRD pushes notification to the client about new symbol set and then the client should request a package with all symbols (`refresh symbols`). - File-based history of previous commands(). In interactive mode in birdc is stored history of all commands in ~/.birdc_history file. - BIRD daemon sends notification to clients about interface updates - Maintains a list of all connected cli clients to daemon. Daemon sends to all cli clients notification about interfaces states up and down.
Showing
- client/birdc.c 47 additions, 8 deletionsclient/birdc.c
- client/birdcl.c 3 additions, 47 deletionsclient/birdcl.c
- client/client.c 168 additions, 10 deletionsclient/client.c
- client/client.h 36 additions, 0 deletionsclient/client.h
- client/commands.c 124 additions, 31 deletionsclient/commands.c
- client/reply_codes.h 103 additions, 0 deletionsclient/reply_codes.h
- conf/conf.c 3 additions, 0 deletionsconf/conf.c
- conf/conf.h 3 additions, 0 deletionsconf/conf.h
- conf/gen_commands.m4 3 additions, 3 deletionsconf/gen_commands.m4
- nest/cli.c 28 additions, 12 deletionsnest/cli.c
- nest/cli.h 2 additions, 0 deletionsnest/cli.h
- nest/cmds.c 52 additions, 0 deletionsnest/cmds.c
- nest/cmds.h 1 addition, 0 deletionsnest/cmds.h
- nest/config.Y 32 additions, 13 deletionsnest/config.Y
- nest/iface.c 7 additions, 2 deletionsnest/iface.c
- proto/ospf/config.Y 15 additions, 8 deletionsproto/ospf/config.Y
- sysdep/unix/main.c 3 additions, 2 deletionssysdep/unix/main.c
Please register or sign in to comment