zsh-workers
 help / color / mirror / code / Atom feed
079b6e6f6f896524791379a19d19fa14cf6a4c3c blob 1203 bytes (raw)

 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
 
#compdef dhcpinfo

_dhcpinfo() {
	local -a mnemonics_v4 mnemonics_v6

	mnemonics_v4=(
		Subnet UTCoffst Router Timeserv IEN116ns DNSserv Logserv
		Cookie Lprserv Impress Resource Hostname Bootsize Dumpfile
		DNSdmain Swapserv Rootpath ExtendP IpFwdF NLrouteF PFilter
		MaxIpSiz IpTTL PathTO PathTbl MTU SameMtuF Broadcst
		MaskDscF MaskSupF RDiscvyF RSolictS StaticRt TrailerF
		ArpTimeO EthEncap TcpTTL TcpKaInt TcpKaGbF NISdmain
		NISservs NTPservs NetBNms NetBDsts NetBNdT NetBScop
		XFontSrv XDispMgr LeaseTim Message T1Time T2Time NW_dmain
		NWIPOpts NIS+dom NIS+serv TFTPsrvN OptBootF MblIPAgt
		OptBootF MblIPAgt SMTPserv POP3serv NNTPserv WWWservs
		Fingersv IRCservs STservs STDAservs UserClas SLP_DA SLP_SS
		AgentOpt FQDN PXEarch BootFile BootPath BootSrvA BootSrvN
		EchoVC LeaseNeg
	)

	mnemonics_v6=(
		ClientID ServerID Preference Unicast UserClass VendorClass
		SIPNames SIPAddresses DNSAddresses DNSSearch NISServers
		NIS+Servers NISDomain NIS+Domain SNTPServers InfoRefresh
		BCMCDomain BCMCAddresses
	)

	_arguments -A \
		'-c[]' \
		'-i[interface]:interface:' \
		'-n[maximum number of lines]:limit:' \
		':DHCP Parameter:_values "DHCP Parameter" $mnemonics_v4' \
}

_dhcpinfo "$@"
debug log:

solving 079b6e6f6 ...
found 079b6e6f6 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).