forked from vladimir-kotikov/clink-completions
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnet.lua
36 lines (34 loc) · 1.16 KB
/
net.lua
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
local parser = clink.arg.new_parser
local net_parser = parser(
{
"accounts" .. parser("/forcelogoff:", "/forcelogoff:no", "/domain",
"/maxpwage:", "/maxpwage:unlimited", "/minpwage:",
"/minpwlen:","/uniquepw:"),
"computer" .. parser({"*" .. parser("/add", "/del")}),
"config" .. parser({"server", "workstation"}),
"continue",
"file",
"group",
"helpmsg",
"localgroup",
"pause",
"session" .. parser({parser("/delete", "/list")}),
"share",
"start",
"statistics" .. parser({"server", "workstation"}),
"stop",
"time" .. parser("/domain", "/rtsdomain", "/set"),
"use" .. parser("/user:", "/smartcard", "/savecred", "/delete",
"/persistent:yes", "/persistent:no"),
"user",
"view" .. parser("/cache", "/all", "/domain")
},
"/?"
)
local help_parser = parser(
{
"help" .. parser({net_parser:flatten_argument(1), "names", "services", "syntax"})
}
)
clink.arg.register_parser("net", net_parser)
clink.arg.register_parser("net", help_parser)