From e8130431356143701c71929d6524e5aae9444c43 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 23 Dec 2015 17:58:21 +0100 Subject: [PATCH] Update dnsdist completion rules --- pdns/dnsdist-console.cc | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 4cad399b1..768cd28f1 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -177,11 +177,36 @@ extern "C" { char* my_generator(const char* text, int state) { string t(text); - vector words{"showRules()", "shutdown()", "rmRule(", "mvRule(", "addACL(", "addLocal(", "setServerPolicy(", "setServerPolicyLua(", - "newServer(", "rmServer(", "showServers()", "show(", "newDNSName(", "newSuffixMatchNode(", "controlSocket(", "topClients(", "showResponseLatency()", - "newQPSLimiter(", "makeKey()", "setKey(", "testCrypto()", "addAnyTCRule()", "showServerPolicy()", "setACL(", "showACL()", "addDomainBlock(", - "addPoolRule(", "addQPSLimit(", "topResponses(", "topQueries(", "topRule()", "setDNSSECPool(", "setECSOverride(", "setECSSourcePrefixV4(", - "setECSSourcePrefixV6(", "addDelay(", "setTCPRecvTimeout(", "setTCPSendTimeout(", "setMaxTCPClientThreads(", "setMaxUDPOutstanding(" }; + /* to keep it readable, we try to keep only 4 keywords per line + and to start a new line when the first letter changes */ + vector words{"addACL(", "addAction(", "addAnyTCRule()", "addDelay(", + "addDisableValidationRule(", "addDNSCryptBind(", "addDomainBlock(", + "addDomainSpoof(", "addDynBlocks(", "addLocal(", "addLuaAction(", + "addNoRecurseRule(", "addPoolRule(", "addQPSLimit(", "addQPSPoolRule(", + "AllRule(", "AndRule(", + "benchRule(", + "carbonServer(", "controlSocket(", "clearDynBlocks()", + "DelayAction(", "delta()", "DisableValidationAction(", "DropAction(", + "dumpStats()", + "firstAvailable", "fixupCase(", + "generateDNSCryptCertificate(", "generateDNSCryptProviderKeys(", "getPoolServers(", "getResponseRing(", + "getServer(", "getServers()", "grepq(", + "leastOutstanding", "LogAction(", + "makeKey()", "MaxQPSIPRule(", "MaxQPSRule(", "mvRule(", + "newDNSName(", "newQPSLimiter(", "newServer(", "newServerPolicy(", + "newSuffixMatchNode(", "NoRecurseAction(", + "PoolAction(", + "RegexRule(", "rmRule(", "rmServer(", "roundrobin", + "QTypeRule(", + "setACL(", "setDNSSECPool(", "setDynBlockNMG(", "setECSOverride(", + "setECSSourcePrefixV4(", "setECSSourcePrefixV6(", "setKey(", "setLocal(", + "setMaxTCPClientThreads(", "setMaxUDPOutstanding(", "setServerPolicy(", "setServerPolicyLua(", + "setTCPRecvTimeout(", "setTCPSendTimeout(", "show(", "showACL()", + "showDNSCryptBinds()", "showDynBlocks()", "showResponseLatency()", "showRules()", + "showServerPolicy()", "showServers()", "shutdown()", "SpoofAction(", + "TCAction(", "testCrypto()", "topBandwidth(", "topClients(", + "topQueries(", "topResponses(", "topRule()", "truncateTC(", + "webserver(", "whashed", "wrandom" }; static int s_counter=0; int counter=0; if(!state) -- 2.40.0