-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_getintel
More file actions
24 lines (20 loc) · 914 Bytes
/
_getintel
File metadata and controls
24 lines (20 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#compdef getintel
_getintel() {
local context state line
typeset -A opt_args
_arguments -C \
'-aria-binary[Path to aria2c binary]:aria2c path:_files' \
'-c[Country code for crux source]:country code:(global us gb ca au de fr jp cn in br mx ru)' \
'-d[Day for the data - single or range]:day:' \
'-dir[Download directory]:directory:_directories' \
'-l[List all generated download URLs instead of downloading]' \
'-m[Month for the data]:month:(01 02 03 04 05 06 07 08 09 10 11 12)' \
'-parse[Parse all Parquet files in current directory and print domain names]' \
'-rpc[aria2c RPC server address]:rpc address:' \
'-src[Source for the data]:source:(alexa umbrella tranco radar majestic crux)' \
'-token[aria2c RPC token]:token:' \
'-y[Year for the data]:year:' \
&& return 0
return 1
}
_getintel "$@"