Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
93 stars 28 forks source link

nk3: Add get-config and set-config subcommands #448

Closed robin-nitrokey closed 8 months ago

robin-nitrokey commented 9 months ago

This PR adds the nk3 get-config and nk3 set-config subcommands to access the device configuration of a Nitrokey 3.

Checklist

Make sure to run make check and make fix before creating a PR, otherwise the CI will fail.

Test Environment and Execution

Relevant Output Example

$ nitropy nk3 get-config fido.disable_skip_up_timeout                                                                                                                                                                                               
Command line tool to interact with Nitrokey devices 0.4.39                                                                                                                                                                                                                                
false                 

$ nitropy nk3 set-config fido.disable_skip_up_timeout true                                                                                                                                                                                          
Command line tool to interact with Nitrokey devices 0.4.39                                                                                                                                                                                                                                
Updated configuration fido.disable_skip_up_timeout.

$ nitropy nk3 get-config fido.disable_skip_up_timeout                                                                                                                                                                                               
Command line tool to interact with Nitrokey devices 0.4.39                                                                                                                                                                                                                                
true   
daringer commented 8 months ago

lgtm!