]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: add missing commands to tab-completion
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Jan 2020 08:45:33 +0000 (09:45 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Jan 2020 10:47:53 +0000 (11:47 +0100)
Reported-by: Lonnie Abelbeck <lonnie@abelbeck.com>
client.c

index e49a25a640a81a4f43bfbb346d4094d6a76ffc38..e08482949135c3dbb119ec4376f53600c195ba95 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1298,11 +1298,11 @@ command_name_generator(const char *text, int state)
     "maxupdateskew", "minpoll", "minstratum", "ntpdata", "offline", "online", "onoffline",
     "polltarget", "quit", "refresh", "rekey", "reselect", "reselectdist",
     "retries", "rtcdata", "serverstats", "settime", "shutdown", "smoothing",
-    "smoothtime", "sources", "sourcestats",
+    "smoothtime", "sourcename", "sources", "sourcestats",
     "timeout", "tracking", "trimrtc", "waitsync", "writertc",
     NULL
   };
-  const char *add_options[] = { "peer", "server", NULL };
+  const char *add_options[] = { "peer", "pool", "server", NULL };
   const char *manual_options[] = { "on", "off", "delete", "list", "reset", NULL };
   const char *sources_options[] = { "-v", NULL };
   const char *sourcestats_options[] = { "-v", NULL };