Skip to content

Commit af354d0

Browse files
committed
Rename --inputmodules to --inputdeck
Prepare for compatibility with Framework 12 and Framework 13 Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent defcaa3 commit af354d0

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Options:
178178
--dump <DUMP> Dump extracted UX capsule bitmap image to a file
179179
--h2o-capsule <H2O_CAPSULE> Parse UEFI Capsule information from binary file
180180
--intrusion Show status of intrusion switch
181-
--inputmodules Show status of the input modules (Framework 16 only)
181+
--inputdeck Show status of the input deck
182182
--input-deck-mode <INPUT_DECK_MODE>
183183
Set input deck power mode [possible values: auto, off, on] (Framework 16 only) [possible values: auto, off, on]
184184
--expansion-bay Show status of the expansion bay (Framework 16 only)

completions/bash/framework_tool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ _framework_tool() {
3434
"--flash-ro-ec"
3535
"--flash-rw-ec"
3636
"--intrusion"
37-
"--inputmodules"
37+
"--inputdeck"
3838
"--input-deck-mode"
3939
"--charge-limit"
4040
"--get-gpio"

completions/zsh/_framework_tool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ options=(
3232
'--flash-ro-ec[Flash EC with new RO firmware from file]:flash_ro_ec'
3333
'--flash-rw-ec[Flash EC with new RW firmware from file]:flash_rw_ec'
3434
'--intrusion[Show status of intrusion switch]'
35-
'--inputmodules[Show status of the input modules (Framework 16 only)]'
35+
'--inputdeck[Show status of the input deck]'
3636
'--input-deck-mode[Set input deck power mode]:input_deck_mode:(auto off on)'
3737
'--charge-limit[Get or set max charge limit]:charge_limit'
3838
'--get-gpio[Get GPIO value by name]:get_gpio'

framework_lib/src/commandline/clap_std.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct ClapCli {
141141

142142
/// Show status of the input modules (Framework 16 only)
143143
#[arg(long)]
144-
inputmodules: bool,
144+
inputdeck: bool,
145145

146146
/// Set input deck power mode [possible values: auto, off, on] (Framework 16 only)
147147
#[arg(long)]
@@ -354,7 +354,7 @@ pub fn parse(args: &[String]) -> Cli {
354354
.flash_rw_ec
355355
.map(|x| x.into_os_string().into_string().unwrap()),
356356
intrusion: args.intrusion,
357-
inputmodules: args.inputmodules,
357+
inputdeck: args.inputdeck,
358358
input_deck_mode: args.input_deck_mode,
359359
expansion_bay: args.expansion_bay,
360360
charge_limit: args.charge_limit,

framework_lib/src/commandline/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub struct Cli {
171171
pub driver: Option<CrosEcDriverType>,
172172
pub test: bool,
173173
pub intrusion: bool,
174-
pub inputmodules: bool,
174+
pub inputdeck: bool,
175175
pub input_deck_mode: Option<InputDeckModeArg>,
176176
pub expansion_bay: bool,
177177
pub charge_limit: Option<Option<u8>>,
@@ -745,7 +745,7 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
745745
} else {
746746
println!(" Unable to tell");
747747
}
748-
} else if args.inputmodules {
748+
} else if args.inputdeck {
749749
println!("Input Module Status:");
750750
if let Some(status) = print_err(ec.get_input_deck_status()) {
751751
println!("Input Deck State: {:?}", status.state);
@@ -1083,7 +1083,7 @@ Options:
10831083
--flash-rw-ec <FLASH_EC> Flash EC with new firmware from file
10841084
--reboot-ec Control EC RO/RW jump [possible values: reboot, jump-ro, jump-rw, cancel-jump, disable-jump]
10851085
--intrusion Show status of intrusion switch
1086-
--inputmodules Show status of the input modules (Framework 16 only)
1086+
--inputdeck Show status of the input deck
10871087
--input-deck-mode Set input deck power mode [possible values: auto, off, on] (Framework 16 only)
10881088
--expansion-bay Show status of the expansion bay (Framework 16 only)
10891089
--charge-limit [<VAL>] Get or set battery charge limit (Percentage number as arg, e.g. '100')

framework_lib/src/commandline/uefi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn parse(args: &[String]) -> Cli {
8484
dump: None,
8585
h2o_capsule: None,
8686
intrusion: false,
87-
inputmodules: false,
87+
inputdeck: false,
8888
input_deck_mode: None,
8989
expansion_bay: false,
9090
charge_limit: None,
@@ -225,8 +225,8 @@ pub fn parse(args: &[String]) -> Cli {
225225
} else if arg == "--intrusion" {
226226
cli.intrusion = true;
227227
found_an_option = true;
228-
} else if arg == "--inputmodules" {
229-
cli.inputmodules = true;
228+
} else if arg == "--inputdeck" {
229+
cli.inputdeck = true;
230230
found_an_option = true;
231231
} else if arg == "--input-deck-mode" {
232232
cli.input_deck_mode = if args.len() > i + 1 {

support-matrices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
| `--pd-info` | PD Communication | All |
3838
| `--privacy` | EC Communication | All |
3939
| `--intrusion` | EC Communication | All |
40-
| `--inputmodules` | EC Communication | Framework 16 |
40+
| `--inputdeck` | EC Communication | Framework 16 |
4141
| `--console` | EC Communication | All |
42-
| `--kblight` | EC Communication | All, except FL16 |
42+
| `--kblight` | EC Communication | All, except FL16 |

0 commit comments

Comments
 (0)