Add "list" as an alias for "dump" in the CLI.
This commit is contained in:
parent
69ba5f621e
commit
7c8f54cdb2
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
;;
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue