forked from farcaster-project/farcaster-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_peerd
52 lines (45 loc) · 1.89 KB
/
_peerd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#compdef peerd
autoload -U is-at-least
_peerd() {
typeset -A opt_args
typeset -a _arguments_options
local ret=1
if is-at-least 5.2; then
_arguments_options=(-s -S -C)
else
_arguments_options=(-s -C)
fi
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
'-L+[Start daemon in listening mode binding the provided local address]: :_hosts' \
'--listen=[Start daemon in listening mode binding the provided local address]: :_hosts' \
'-C+[Connect to a remote peer with the provided address after start]' \
'--connect=[Connect to a remote peer with the provided address after start]' \
'-p+[Customize port used by lightning peer network]' \
'--port=[Customize port used by lightning peer network]' \
'-o+[Overlay peer communications through different transport protocol]: :(tcp zmq http websocket smtp)' \
'--overlay=[Overlay peer communications through different transport protocol]: :(tcp zmq http websocket smtp)' \
'--peer-secret-key=[]' \
'--token=[Token used to authentify calls]' \
'-d+[Data directory path]: :_files -/' \
'--data-dir=[Data directory path]: :_files -/' \
'-T+[Use Tor]: :_hosts' \
'--tor-proxy=[Use Tor]: :_hosts' \
'-m+[ZMQ socket name/address to forward all incoming protocol messages]: :_files' \
'--msg-socket=[ZMQ socket name/address to forward all incoming protocol messages]: :_files' \
'-x+[ZMQ socket name/address for daemon control interface]: :_files' \
'--ctl-socket=[ZMQ socket name/address for daemon control interface]: :_files' \
'-h[Print help information]' \
'--help[Print help information]' \
'-V[Print version information]' \
'--version[Print version information]' \
'*-v[Set verbosity level]' \
'*--verbose[Set verbosity level]' \
&& ret=0
}
(( $+functions[_peerd_commands] )) ||
_peerd_commands() {
local commands; commands=()
_describe -t commands 'peerd commands' commands "$@"
}
_peerd "$@"