]> git.ipfire.org Git - thirdparty/bird.git/commit
CLI: Improved auto-completion behavior cli-completion
authorPavel Tvrdik <pawel.tvrdik@gmail.com>
Fri, 15 Apr 2016 09:41:08 +0000 (11:41 +0200)
committerPavel Tvrdik <pawel.tvrdik@gmail.com>
Thu, 30 Jun 2016 14:42:04 +0000 (16:42 +0200)
commitb7f24e23fdfa7c7572a6614b4589d1f8020b1ee0
treeab7b27d9c463f52d6bd881b528620c7f9727c031
parent5de0e848de06a9187046dbc380d9ce6a6f8b21a2
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.
17 files changed:
client/birdc.c
client/birdcl.c
client/client.c
client/client.h
client/commands.c
client/reply_codes.h [new file with mode: 0644]
conf/conf.c
conf/conf.h
conf/gen_commands.m4
nest/cli.c
nest/cli.h
nest/cmds.c
nest/cmds.h
nest/config.Y
nest/iface.c
proto/ospf/config.Y
sysdep/unix/main.c