diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-10-29 04:43:04 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-10-29 04:43:04 +0000 |
| commit | ebacb4edce50ef418e46b090288223adea89b2d0 (patch) | |
| tree | 189aec495e8ed108e55a73e617ca9663d8d89cfd /lib/command.h | |
| parent | bec37ba594856e0fac7fd20baa08d50d0e3fe86a (diff) | |
lib: Various minor improvements & bugfixes to CLI backend
- Do not allow tab-completion on anything except words
- Rewrite cmd_make_strvec to use strsep
- Remove a few trailing whitespaces
- Remove cmd_complete_command_lib
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/command.h b/lib/command.h index 4d60c5b4fe..bdf30b6f3c 100644 --- a/lib/command.h +++ b/lib/command.h @@ -187,13 +187,10 @@ enum cmd_token_type */ struct cmd_token { - enum cmd_token_type type; // token type - + enum cmd_token_type type; // token type char *text; // token text char *desc; // token description - long long min, max; // for ranges - char *arg; // user input that matches this token }; @@ -419,7 +416,6 @@ extern void cmd_free_strvec (vector); extern char *cmd_concat_strvec (vector); extern vector cmd_describe_command (vector, struct vty *, int *status); extern char **cmd_complete_command (vector, struct vty *, int *status); -extern char **cmd_complete_command_lib (vector, struct vty *, int *status, int islib); extern const char *cmd_prompt (enum node_type); extern int command_config_read_one_line (struct vty *vty, struct cmd_element **, int use_config_node); extern int config_from_file (struct vty *, FILE *, unsigned int *line_num); |
