Skip to content

Commit

Permalink
chore: update generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Jan 27, 2025
1 parent 7cc0147 commit d324d0e
Showing 1 changed file with 110 additions and 12 deletions.
122 changes: 110 additions & 12 deletions doc/cyme.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,118 @@ complete -c cyme -s s -l show -d 'Show only devices with specified device and/or
complete -c cyme -s D -l device -d 'Selects which device lsusb will examine - supplied as Linux /dev/bus/usb/BBB/DDD style path' -r
complete -c cyme -l filter-name -d 'Filter on string contained in name' -r
complete -c cyme -l filter-serial -d 'Filter on string contained in serial' -r
complete -c cyme -l filter-class -d 'Filter on USB class code' -r -f -a "{use-interface-descriptor\t'Device class is unspecified, interface descriptors are used to determine needed drivers',audio\t'Speaker, microphone, sound card, MIDI',cdc-communications\t'The modern serial interface; appears as a UART/RS232 port on most systems',hid\t'Human Interface Device; game controllers, keyboards, mice etc. Also commonly used as a device data interface rather then creating something from scratch',physical\t'Force feedback joystick',image\t'Still imaging device; scanners, cameras',printer\t'Laser printer, inkjet printer, CNC machine',mass-storage\t'Mass storage devices (MSD): USB flash drive, memory card reader, digital audio player, digital camera, external drive',hub\t'High speed USB hub',cdc-data\t'Used together with class 02h (Communications and CDC Control) above',smart-card\t'USB smart card reader',content-security\t'Fingerprint reader',video\t'Webcam',personal-healthcare\t'Pulse monitor (watch)',audio-video\t'Webcam, TV',billboard\t'Describes USB-C alternate modes supported by device',usb-type-c-bridge\t'An interface to expose and configure the USB Type-C capabilities of Connectors on USB Hubs or Alternate Mode Adapters',bdp\t'This base class is defined for devices that conform to the “VESA USB BDP Device Specification” found at the VESA website. This specification defines the usable set of SubClass and Protocol values. Values outside of this defined spec are reserved. These class codes can only be used in Interface Descriptors',mctp\t'This base class is defined for devices that conform to the “MCTP over USB” found at the DMTF website as DSP0283. This specification defines the usable set of SubClass and Protocol values. Values outside of this defined spec are reserved. These class codes can only be used in Interface Descriptors',i3c-device\t'An interface to expose and configure I3C function within a USB device to allow interaction between host software and the I3C device, to drive transaction on the I3C bus to/from target devices',diagnostic\t'Trace and debugging equipment',wireless-controller\t'Wireless controllers: Bluetooth adaptors, Microsoft RNDIS',miscellaneous\t'This base class is defined for miscellaneous device definitions. Some matching SubClass and Protocols are defined on the USB-IF website',application-specific-interface\t'This base class is defined for devices that conform to several class specifications found on the USB-IF website',vendor-specific-class\t'This base class is defined for vendors to use as they please'}"
complete -c cyme -s b -l blocks -d 'Specify the blocks which will be displayed for each device and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "{bus-number\t'Number of bus device is attached',device-number\t'Bus issued device number',branch-position\t'Position of device in parent branch',port-path\t'Linux style port path',sys-path\t'Linux udev reported syspath',driver\t'Linux udev reported driver loaded for device',icon\t'Icon based on VID/PID',vendor-id\t'Unique vendor identifier - purchased from USB IF',product-id\t'Vendor unique product identifier',name\t'The device name as reported in descriptor or using usb_ids if None',manufacturer\t'The device manufacturer as provided in descriptor or using usb_ids if None',product-name\t'The device product name as reported by usb_ids vidpid lookup',vendor-name\t'The device vendor name as reported by usb_ids vid lookup',serial\t'Device serial string as reported by descriptor',speed\t'Advertised device capable speed',tree-positions\t'Position along all branches back to trunk device',bus-power\t'macOS system_profiler only - actually bus current in mA not power!',bus-power-used\t'macOS system_profiler only - actually bus current used in mA not power!',extra-current-used\t'macOS system_profiler only - actually bus current used in mA not power!',bcd-device\t'The device version',bcd-usb\t'The supported USB version',base-class\t'Base class enum of interface provided by USB IF - only available when using libusb',sub-class\t'Sub-class value of interface provided by USB IF - only available when using libusb',protocol\t'Prototol value for interface provided by USB IF - only available when using libusb',uid-class\t'Class name from USB IDs repository',uid-sub-class\t'Sub-class name from USB IDs repository',uid-protocol\t'Protocol name from USB IDs repository',class\t'Fully defined USB Class Code enum based on BaseClass/SubClass/Protocol triplet',base-value\t'Base class as number value rather than enum'}"
complete -c cyme -l bus-blocks -d 'Specify the blocks which will be displayed for each bus and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "{bus-number\t'System bus number identifier',icon\t'Icon based on VID/PID',name\t'System internal bus name based on Root Hub device name',host-controller\t'System internal bus provider name',host-controller-vendor\t'Vendor name of PCI Host Controller from pci.ids',host-controller-device\t'Device name of PCI Host Controller from pci.ids',pci-vendor\t'PCI vendor ID (VID)',pci-device\t'PCI device ID (PID)',pci-revision\t'PCI Revsision ID',port-path\t'syspath style port path to bus, applicable to Linux only'}"
complete -c cyme -l config-blocks -d 'Specify the blocks which will be displayed for each configuration and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "{name\t'Name from string descriptor',number\t'Number of config, bConfigurationValue; value to set to enable to configuration',num-interfaces\t'Interfaces available for this configuruation',attributes\t'Attributes of configuration, bmAttributes',icon-attributes\t'Icon representation of bmAttributes',max-power\t'Maximum current consumption in mA'}"
complete -c cyme -l interface-blocks -d 'Specify the blocks which will be displayed for each interface and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "{name\t'Name from string descriptor',number\t'Interface number',port-path\t'Interface port path, applicable to Linux',base-class\t'Base class enum of interface provided by USB IF',sub-class\t'Sub-class value of interface provided by USB IF',protocol\t'Prototol value for interface provided by USB IF',alt-setting\t'Interfaces can have the same number but an alternate settings defined here',driver\t'Driver obtained from udev on Linux only',sys-path\t'syspath obtained from udev on Linux only',num-endpoints\t'An interface can have many endpoints',icon\t'Icon based on BaseClass/SubCode/Protocol',uid-class\t'Class name from USB IDs repository',uid-sub-class\t'Sub-class name from USB IDs repository',uid-protocol\t'Protocol name from USB IDs repository',class\t'Fully defined USB Class Code based on BaseClass/SubClass/Protocol triplet',base-value\t'Base class as number value rather than enum'}"
complete -c cyme -l endpoint-blocks -d 'Specify the blocks which will be displayed for each endpoint and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "{number\t'Endpoint number on interface',direction\t'Direction of data into endpoint',transfer-type\t'Type of data transfer endpoint accepts',sync-type\t'Synchronisation type (Iso mode)',usage-type\t'Usage type (Iso mode)',max-packet-size\t'Maximum packet size in bytes endpoint can send/recieve',interval\t'Interval for polling endpoint data transfers. Value in frame counts. Ignored for Bulk & Control Endpoints. Isochronous must equal 1 and field may range from 1 to 255 for interrupt endpoints'}"
complete -c cyme -l sort-devices -d 'Sort devices operation' -r -f -a "{device-number\t'Sort by bus device number',branch-position\t'Sort by position in parent branch',no-sort\t'No sorting; whatever order it was parsed'}"
complete -c cyme -l group-devices -d 'Group devices by value when listing' -r -f -a "{no-group\t'No grouping',bus\t'Group into buses with bus info as heading - like a flat tree'}"
complete -c cyme -l color -d 'Output coloring mode' -r -f -a "{auto\t'Show colours if the output goes to an interactive console',always\t'Always apply colouring to the output',never\t'Never apply colouring to the output'}"
complete -c cyme -l encoding -d 'Output character encoding' -r -f -a "{glyphs\t'Use UTF-8 private use area characters such as those used by NerdFont to show glyph icons',utf8\t'Use only standard UTF-8 characters for the output; no private use area glyph icons',ascii\t'Use only ASCII characters for the output; 0x00 - 0x7F (127 chars)'}"
complete -c cyme -l icon -d 'When to print icon blocks' -r -f -a "{auto\t'Show icon blocks if the [`Encoding`] supports icons matched in the [`icon::IconTheme`]',always\t'Always print icon blocks if included in configured blocks',never\t'Never print icon blocks'}"
complete -c cyme -l filter-class -d 'Filter on USB class code' -r -f -a "use-interface-descriptor\t'Device class is unspecified, interface descriptors are used to determine needed drivers'
audio\t'Speaker, microphone, sound card, MIDI'
cdc-communications\t'The modern serial interface; appears as a UART/RS232 port on most systems'
hid\t'Human Interface Device; game controllers, keyboards, mice etc. Also commonly used as a device data interface rather then creating something from scratch'
physical\t'Force feedback joystick'
image\t'Still imaging device; scanners, cameras'
printer\t'Laser printer, inkjet printer, CNC machine'
mass-storage\t'Mass storage devices (MSD): USB flash drive, memory card reader, digital audio player, digital camera, external drive'
hub\t'High speed USB hub'
cdc-data\t'Used together with class 02h (Communications and CDC Control) above'
smart-card\t'USB smart card reader'
content-security\t'Fingerprint reader'
video\t'Webcam'
personal-healthcare\t'Pulse monitor (watch)'
audio-video\t'Webcam, TV'
billboard\t'Describes USB-C alternate modes supported by device'
usb-type-c-bridge\t'An interface to expose and configure the USB Type-C capabilities of Connectors on USB Hubs or Alternate Mode Adapters'
bdp\t'This base class is defined for devices that conform to the “VESA USB BDP Device Specification” found at the VESA website. This specification defines the usable set of SubClass and Protocol values. Values outside of this defined spec are reserved. These class codes can only be used in Interface Descriptors'
mctp\t'This base class is defined for devices that conform to the “MCTP over USB” found at the DMTF website as DSP0283. This specification defines the usable set of SubClass and Protocol values. Values outside of this defined spec are reserved. These class codes can only be used in Interface Descriptors'
i3c-device\t'An interface to expose and configure I3C function within a USB device to allow interaction between host software and the I3C device, to drive transaction on the I3C bus to/from target devices'
diagnostic\t'Trace and debugging equipment'
wireless-controller\t'Wireless controllers: Bluetooth adaptors, Microsoft RNDIS'
miscellaneous\t'This base class is defined for miscellaneous device definitions. Some matching SubClass and Protocols are defined on the USB-IF website'
application-specific-interface\t'This base class is defined for devices that conform to several class specifications found on the USB-IF website'
vendor-specific-class\t'This base class is defined for vendors to use as they please'"
complete -c cyme -s b -l blocks -d 'Specify the blocks which will be displayed for each device and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "bus-number\t'Number of bus device is attached'
device-number\t'Bus issued device number'
branch-position\t'Position of device in parent branch'
port-path\t'Linux style port path'
sys-path\t'Linux udev reported syspath'
driver\t'Linux udev reported driver loaded for device'
icon\t'Icon based on VID/PID'
vendor-id\t'Unique vendor identifier - purchased from USB IF'
product-id\t'Vendor unique product identifier'
name\t'The device name as reported in descriptor or using usb_ids if None'
manufacturer\t'The device manufacturer as provided in descriptor or using usb_ids if None'
product-name\t'The device product name as reported by usb_ids vidpid lookup'
vendor-name\t'The device vendor name as reported by usb_ids vid lookup'
serial\t'Device serial string as reported by descriptor'
speed\t'Advertised device capable speed'
tree-positions\t'Position along all branches back to trunk device'
bus-power\t'macOS system_profiler only - actually bus current in mA not power!'
bus-power-used\t'macOS system_profiler only - actually bus current used in mA not power!'
extra-current-used\t'macOS system_profiler only - actually bus current used in mA not power!'
bcd-device\t'The device version'
bcd-usb\t'The supported USB version'
base-class\t'Base class enum of interface provided by USB IF - only available when using libusb'
sub-class\t'Sub-class value of interface provided by USB IF - only available when using libusb'
protocol\t'Prototol value for interface provided by USB IF - only available when using libusb'
uid-class\t'Class name from USB IDs repository'
uid-sub-class\t'Sub-class name from USB IDs repository'
uid-protocol\t'Protocol name from USB IDs repository'
class\t'Fully defined USB Class Code enum based on BaseClass/SubClass/Protocol triplet'
base-value\t'Base class as number value rather than enum'"
complete -c cyme -l bus-blocks -d 'Specify the blocks which will be displayed for each bus and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "bus-number\t'System bus number identifier'
icon\t'Icon based on VID/PID'
name\t'System internal bus name based on Root Hub device name'
host-controller\t'System internal bus provider name'
host-controller-vendor\t'Vendor name of PCI Host Controller from pci.ids'
host-controller-device\t'Device name of PCI Host Controller from pci.ids'
pci-vendor\t'PCI vendor ID (VID)'
pci-device\t'PCI device ID (PID)'
pci-revision\t'PCI Revsision ID'
port-path\t'syspath style port path to bus, applicable to Linux only'"
complete -c cyme -l config-blocks -d 'Specify the blocks which will be displayed for each configuration and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "name\t'Name from string descriptor'
number\t'Number of config, bConfigurationValue; value to set to enable to configuration'
num-interfaces\t'Interfaces available for this configuruation'
attributes\t'Attributes of configuration, bmAttributes'
icon-attributes\t'Icon representation of bmAttributes'
max-power\t'Maximum current consumption in mA'"
complete -c cyme -l interface-blocks -d 'Specify the blocks which will be displayed for each interface and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "name\t'Name from string descriptor'
number\t'Interface number'
port-path\t'Interface port path, applicable to Linux'
base-class\t'Base class enum of interface provided by USB IF'
sub-class\t'Sub-class value of interface provided by USB IF'
protocol\t'Prototol value for interface provided by USB IF'
alt-setting\t'Interfaces can have the same number but an alternate settings defined here'
driver\t'Driver obtained from udev on Linux only'
sys-path\t'syspath obtained from udev on Linux only'
num-endpoints\t'An interface can have many endpoints'
icon\t'Icon based on BaseClass/SubCode/Protocol'
uid-class\t'Class name from USB IDs repository'
uid-sub-class\t'Sub-class name from USB IDs repository'
uid-protocol\t'Protocol name from USB IDs repository'
class\t'Fully defined USB Class Code based on BaseClass/SubClass/Protocol triplet'
base-value\t'Base class as number value rather than enum'"
complete -c cyme -l endpoint-blocks -d 'Specify the blocks which will be displayed for each endpoint and in what order. Supply arg multiple times to specify multiple blocks' -r -f -a "number\t'Endpoint number on interface'
direction\t'Direction of data into endpoint'
transfer-type\t'Type of data transfer endpoint accepts'
sync-type\t'Synchronisation type (Iso mode)'
usage-type\t'Usage type (Iso mode)'
max-packet-size\t'Maximum packet size in bytes endpoint can send/recieve'
interval\t'Interval for polling endpoint data transfers. Value in frame counts. Ignored for Bulk & Control Endpoints. Isochronous must equal 1 and field may range from 1 to 255 for interrupt endpoints'"
complete -c cyme -l sort-devices -d 'Sort devices operation' -r -f -a "device-number\t'Sort by bus device number'
branch-position\t'Sort by position in parent branch'
no-sort\t'No sorting; whatever order it was parsed'"
complete -c cyme -l group-devices -d 'Group devices by value when listing' -r -f -a "no-group\t'No grouping'
bus\t'Group into buses with bus info as heading - like a flat tree'"
complete -c cyme -l color -d 'Output coloring mode' -r -f -a "auto\t'Show colours if the output goes to an interactive console'
always\t'Always apply colouring to the output'
never\t'Never apply colouring to the output'"
complete -c cyme -l encoding -d 'Output character encoding' -r -f -a "glyphs\t'Use UTF-8 private use area characters such as those used by NerdFont to show glyph icons'
utf8\t'Use only standard UTF-8 characters for the output; no private use area glyph icons'
ascii\t'Use only ASCII characters for the output; 0x00 - 0x7F (127 chars)'"
complete -c cyme -l icon -d 'When to print icon blocks' -r -f -a "auto\t'Show icon blocks if the [`Encoding`] supports icons matched in the [`icon::IconTheme`]'
always\t'Always print icon blocks if included in configured blocks'
never\t'Never print icon blocks'"
complete -c cyme -l from-json -d 'Read from json output rather than profiling system' -r
complete -c cyme -s c -l config -d 'Path to user config file to use for custom icons, colours and default settings' -r
complete -c cyme -l mask-serials -d 'Mask serial numbers with \'*\' or random chars' -r -f -a "{hide\t'Hide with \'*\' char',scramble\t'Mask by randomising existing chars',replace\t'Mask by replacing length with random chars'}"
complete -c cyme -l mask-serials -d 'Mask serial numbers with \'*\' or random chars' -r -f -a "hide\t'Hide with \'*\' char'
scramble\t'Mask by randomising existing chars'
replace\t'Mask by replacing length with random chars'"
complete -c cyme -s l -l lsusb -d 'Attempt to maintain compatibility with lsusb output'
complete -c cyme -s t -l tree -d 'Dump USB device hierarchy as a tree'
complete -c cyme -s v -l verbose -d 'Verbosity level (repeat provides count): 1 prints device configurations; 2 prints interfaces; 3 prints interface endpoints; 4 prints everything and more blocks'
Expand Down

0 comments on commit d324d0e

Please sign in to comment.