Few outstanding arguments were not marked with completers
completer despite the fact that we can't provide any reasonable
suggestion (e.g 'echo' or 'complete' commands) or where we want to
complete local path ( 'cd' ).
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
#include "virstring.h"
#include "virutil.h"
+#include "vsh-completer.h"
+
#ifdef WITH_READLINE
/* For autocompletion */
vshControl *autoCompleteOpaque;
{.name = "dir",
.type = VSH_OT_STRING,
.positional = true,
+ .completer = vshCompletePathLocalExisting,
.help = N_("directory to switch to (default: home or else root)")
},
{.name = NULL}
},
{.name = "prefix",
.type = VSH_OT_STRING,
+ .completer = vshCompleteEmpty,
.help = N_("prefix the message")
},
{.name = "string",
.type = VSH_OT_ARGV,
.positional = true,
+ .completer = vshCompleteEmpty,
.help = N_("arguments to echo")
},
{.name = NULL}
.type = VSH_OT_ARGV,
.positional = true,
.allowEmpty = true,
+ .completer = vshCompleteEmpty,
.help = N_("partial string to autocomplete")
},
{.name = NULL}