From: Guus Sliepen Date: Tue, 19 May 2015 22:02:53 +0000 (+0200) Subject: Add "list" as an alias for "dump" in the CLI. X-Git-Tag: release-1.1pre12~140 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=7c8f54cdb2925ba787209f5358b62d3cee414d43;p=tinc Add "list" as an alias for "dump" in the CLI. --- 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},