Skip to content

Commit 8a90c37

Browse files
committed
completions: Add new commands
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 034a109 commit 8a90c37

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

completions/bash/framework_tool

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
_framework_tool() {
66
local options
77
options=(
8+
"--flash-gpu-descriptor"
89
"-v" "--verbose"
910
"-q" "--quiet"
1011
"--versions"
@@ -37,8 +38,12 @@ _framework_tool() {
3738
"--input-deck-mode"
3839
"--charge-limit"
3940
"--get-gpio"
41+
"--fp-led-level"
4042
"--fp-brightness"
4143
"--kblight"
44+
"--rgbkbd"
45+
"--tablet-mode"
46+
"--touchscreen-enable"
4247
"--console"
4348
"--reboot-ec"
4449
"--hash"
@@ -55,7 +60,7 @@ _framework_tool() {
5560
local console_modes=("recent" "follow")
5661
local drivers=("portio" "cros-ec" "windows")
5762
local has_mec_options=("true" "false")
58-
local brightness_options=("high" "medium" "low")
63+
local brightness_options=("high" "medium" "low" "ultra-low")
5964

6065
local current_word prev_word
6166
current_word="${COMP_WORDS[COMP_CWORD]}"

completions/zsh/_framework_tool

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
local -a options
44

55
options=(
6+
'--flash-gpu-descriptor[]'
67
'-v[Increase logging verbosity]'
78
'-q[Decrease logging verbosity]'
89
'--versions[Show current firmware versions]'
@@ -35,8 +36,12 @@ options=(
3536
'--input-deck-mode[Set input deck power mode]:input_deck_mode:(auto off on)'
3637
'--charge-limit[Get or set max charge limit]:charge_limit'
3738
'--get-gpio[Get GPIO value by name]:get_gpio'
38-
'--fp-brightness[Get or set fingerprint LED brightness]:fp_brightness:(high medium low)'
39+
'--fp-led-level-gpio[Get or set fingerprint LED brightness level]:fp_led_level:(high medium low ultra-low auto)'
40+
'--fp-brightness[Get or set fingerprint LED brightness]:fp_brightness'
3941
'--kblight[Set keyboard backlight percentage or get, if no value provided]:kblight'
42+
'--rgbkbd[Set the color of <key> to <RGB>.]'
43+
'--tablet-mode[Set tablet mode override]:tablet_mode:(auto tablet laptop)'
44+
'--touchscreen-enable[Enable/disable touchscreen]:touchscreen_enable:(true false)'
4045
'--console[Get EC console, choose whether recent or to follow the output]:console:(recent follow)'
4146
'--reboot-ec[Control EC RO/RW jump]:reboot_ec:(reboot jump-ro jump-rw cancel-jump disable-jump)'
4247
'--hash[Hash a file of arbitrary data]:hash'

0 commit comments

Comments
 (0)