From 7c8f54cdb2925ba787209f5358b62d3cee414d43 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 20 May 2015 00:02:53 +0200 Subject: [PATCH] Add "list" as an alias for "dump" in the CLI. --- bash_completion.d/tinc | 4 ++-- src/tincctl.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bash_completion.d/tinc b/bash_completion.d/tinc index ddbc34ac..7fdbf209 100644 --- a/bash_completion.d/tinc +++ b/bash_completion.d/tinc @@ -5,7 +5,7 @@ _tinc() { prev="${COMP_WORDS[COMP_CWORD-1]}" opts="-c -d -D -K -n -o -L -R -U --config --no-detach --debug --net --option --mlock --logfile --pidfile --chroot --user --help --version" confvars="Address AddressFamily BindToAddress BindToInterface Broadcast BroadcastSubnet Cipher ClampMSS Compression ConnectTo DecrementTTL Device DeviceStandby DeviceType Digest DirectOnly Ed25519PrivateKeyFile Ed25519PublicKey Ed25519PublicKeyFile ExperimentalProtocol Forwarding GraphDumpFile Hostnames IffOneQueue IndirectData Interface KeyExpire ListenAddress LocalDiscovery MACExpire MACLength MaxOutputBufferSize MaxTimeout Mode MTUInfoInterval Name PMTU PMTUDiscovery PingInterval PingTimeout Port PriorityInheritance PrivateKeyFile ProcessPriority Proxy PublicKeyFile ReplayWindow StrictSubnets Subnet TCPOnly TunnelServer UDPDiscovery UDPDiscoveryKeepaliveInterval UDPDiscoveryInterval UDPDiscoveryTimeout UDPInfoInterval UDPRcvBuf UDPSndBuf VDEGroup VDEPort Weight" - commands="add connect debug del disconnect dump edit export export-all generate-ed25519-keys generate-keys generate-rsa-keys get help import info init invite join log network pcap pid purge reload restart retry set start stop top version" + commands="add connect debug del disconnect dump edit export export-all generate-ed25519-keys generate-keys generate-rsa-keys get help import info init invite join list log network pcap pid purge reload restart retry set start stop top version" case ${prev} in -c|--config) @@ -57,7 +57,7 @@ _tinc() { COMPREPLY=( $(compgen -W "${confvars}" -- ${cur}) ) return 0 ;; - dump|reachable) + dump|list|reachable) COMPREPLY=( $(compgen -W "reachable nodes edges subnets connections graph" -- ${cur}) ) return 0 ;; diff --git a/src/tincctl.c b/src/tincctl.c index b56d9a24..8d3d7a58 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -2227,6 +2227,7 @@ static const struct { {"restart", cmd_restart}, {"reload", cmd_reload}, {"dump", cmd_dump}, + {"list", cmd_dump}, {"purge", cmd_purge}, {"debug", cmd_debug}, {"retry", cmd_retry}, -- 2.20.1