zsh-workers
 help / color / mirror / code / Atom feed
061b68ebae9a79544696d6b38708088ca7ef3226 blob 1379 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#compdef system_profiler

typeset -A opt_args
local context state state_descr line
local -a _data_types

# TODO: Should this be static?  Calling `system_profiler -listDataTypes` takes
# about 0.07-0.08 secs on my machine.  Does this list ever change (between
# different versions of OS X)?
_data_types=( SP{AirPort,Applications,Audio,Bluetooth,Camera,CardReader,Component,ConfigurationProfile,DeveloperTools,Diagnostics,DisabledSoftware,DiscBurning,Displays,Ethernet,Extensions,FibreChannel,FireWire,Firewall,Fonts,Frameworks,Hardware,HardwareRAID,InstallHistory,Logs,ManagedClient,Memory,Network,NetworkLocation,NetworkVolume,PCI,ParallelATA,ParallelSCSI,Power,PrefPane,Printers,PrintersSoftware,SAS,SPI,SerialATA,Software,StartupItem,Storage,SyncServices,Thunderbolt,USB,UniversalAccess,WWAN}DataType )
# the dynamic alternative is:
#_data_types=( ${${(f)"$(_call_program path system_profiler -listDataTypes 2>/dev/null)"}[2,-1]} )

_arguments \
  '(- *)-usage' \
  '(- *)-listDataTypes[lists the available datatypes]' \
  '(-listDataTypes -usage -json)-xml[generate xml output]' \
  '(-listDataTypes -usage -xml)-json[generate json output]' \
  '(-listDataTypes -usage)-detailLevel[level of detail for the report]:detail level:(mini basic full)' \
  '(-listDataTypes -usage)-timeout+[maximum time to wait in seconds]' \
  '(-listDataTypes -usage)*:data type:'"($_data_types)"
debug log:

solving 061b68eba ...
found 061b68eba in https://inbox.vuxu.org/zsh-workers/20230823040004.171642-2-syohex@gmail.com/
found fe197579d in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 fe197579d37757d6701e213ad19a2adde3169479	Completion/Darwin/Command/_system_profiler

applying [1/1] https://inbox.vuxu.org/zsh-workers/20230823040004.171642-2-syohex@gmail.com/
diff --git a/Completion/Darwin/Command/_system_profiler b/Completion/Darwin/Command/_system_profiler
index fe197579d..061b68eba 100644

Checking patch Completion/Darwin/Command/_system_profiler...
Applied patch Completion/Darwin/Command/_system_profiler cleanly.

index at:
100644 061b68ebae9a79544696d6b38708088ca7ef3226	Completion/Darwin/Command/_system_profiler

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).