|
| 1 | +#compdef framework_tool |
| 2 | + |
| 3 | +local -a options |
| 4 | + |
| 5 | +options=( |
| 6 | + '-v[Increase logging verbosity]' |
| 7 | + '-q[Decrease logging verbosity]' |
| 8 | + '--versions[Show current firmware versions]' |
| 9 | + '--version[Show tool version information (Add -vv for more details)]' |
| 10 | + '--features[Show features supported by the firmware]' |
| 11 | + '--esrt[Display the UEFI ESRT table]' |
| 12 | + '--device[Specify device type]:device:(bios ec pd0 pd1 rtm01 rtm23 ac-left ac-right)' |
| 13 | + '--compare-version[Specify version to compare]:compare_version' |
| 14 | + '--power[Show current power status of battery and AC (Add -vv for more details)]' |
| 15 | + '--thermal[Print thermal information (Temperatures and Fan speed)]' |
| 16 | + '--sensors[Print sensor information (ALS, G-Sensor)]' |
| 17 | + '--pdports[Show information about USB-C PD ports]' |
| 18 | + '--info[Show info from SMBIOS (Only on UEFI)]' |
| 19 | + '--pd-info[Show details about the PD controllers]' |
| 20 | + '--dp-hdmi-info[Show details about connected DP or HDMI Expansion Cards]' |
| 21 | + '--dp-hdmi-update[Update the DisplayPort or HDMI Expansion Card]:update_bin' |
| 22 | + '--audio-card-info[Show details about connected Audio Expansion Cards (Needs root privileges)]' |
| 23 | + '--privacy[Show privacy switch statuses (camera and microphone)]' |
| 24 | + '--pd-bin[Parse versions from PD firmware binary file]:pd_bin' |
| 25 | + '--ec-bin[Parse versions from EC firmware binary file]:ec_bin' |
| 26 | + '--capsule[Parse UEFI Capsule information from binary file]:capsule' |
| 27 | + '--dump[Dump extracted UX capsule bitmap image to a file]:dump' |
| 28 | + '--ho2-capsule[Parse UEFI Capsule information from binary file]:ho2_capsule' |
| 29 | + '--dump-ec-flash[Dump EC flash contents]:dump_ec_flash' |
| 30 | + '--flash-ec[Flash EC with new firmware from file]:flash_ec' |
| 31 | + '--flash-ro-ec[Flash EC with new RO firmware from file]:flash_ro_ec' |
| 32 | + '--flash-rw-ec[Flash EC with new RW firmware from file]:flash_rw_ec' |
| 33 | + '--intrusion[Show status of intrusion switch]' |
| 34 | + '--inputmodules[Show status of the input modules (Framework 16 only)]' |
| 35 | + '--input-deck-mode[Set input deck power mode]:input_deck_mode:(auto off on)' |
| 36 | + '--charge-limit[Get or set max charge limit]:charge_limit' |
| 37 | + '--get-gpio[Get GPIO value by name]:get_gpio' |
| 38 | + '--fp-brightness[Get or set fingerprint LED brightness]:fp_brightness:(high medium low)' |
| 39 | + '--kblight[Set keyboard backlight percentage or get, if no value provided]:kblight' |
| 40 | + '--console[Get EC console, choose whether recent or to follow the output]:console:(recent follow)' |
| 41 | + '--reboot-ec[Control EC RO/RW jump]:reboot_ec:(reboot jump-ro jump-rw cancel-jump disable-jump)' |
| 42 | + '--hash[Hash a file of arbitrary data]:hash' |
| 43 | + '--driver[Select which driver is used]:driver:(portio cros-ec windows)' |
| 44 | + '--pd-addrs[Specify I2C addresses of the PD chips (Advanced)]:pd_addrs' |
| 45 | + '--pd-ports[Specify I2C ports of the PD chips (Advanced)]:pd_ports' |
| 46 | + '--has-mec[Specify the type of EC chip (MEC/MCHP or other)]:has_mec:(true false)' |
| 47 | + '-t[Run self-test to check if interaction with EC is possible]' |
| 48 | + '-h[Print help]' |
| 49 | +) |
| 50 | + |
| 51 | +_arguments -s -S $options |
0 commit comments