]> git.ipfire.org Git - thirdparty/bird.git/commit
CLI: Improved auto-completion behavior
authorPavel Tvrdik <pawel.tvrdik@gmail.com>
Fri, 15 Apr 2016 09:41:08 +0000 (11:41 +0200)
committerJan Moskyto Matejka <mq@ucw.cz>
Thu, 18 May 2017 13:09:15 +0000 (15:09 +0200)
commit87857f7f46a4ac40de98f1bebaa8fd6337c7bee9
tree05ee844cd4fd3cdfeb4f0f46d7d6d70bff3b1005
parentd19617f06b4526bccc2fc5e5e15c43c754b99a4d
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