@@ -58,8 +58,6 @@ pub struct GlobalOptions {
58
58
pub enum Subcommands {
59
59
#[ clap( subcommand) ]
60
60
App ( Apps ) ,
61
- #[ clap( subcommand) ]
62
- Pki ( Pki ) ,
63
61
64
62
#[ clap( subcommand) ]
65
63
Bootloader ( Bootloader ) ,
@@ -71,6 +69,9 @@ pub enum Subcommands {
71
69
#[ clap( visible_alias = "ls" ) ]
72
70
List ,
73
71
72
+ #[ clap( subcommand) ]
73
+ Pki ( Pki ) ,
74
+
74
75
/// Update to latest firmware published by SoloKeys. Warns on Major updates.
75
76
Update {
76
77
/// Just show the version that would be installed
@@ -91,8 +92,6 @@ pub enum Subcommands {
91
92
#[ derive( Subcommand ) ]
92
93
/// Interact with bootloader
93
94
pub enum Bootloader {
94
- /// Reboots (into device if firmware is valid)
95
- Reboot ,
96
95
/// List all available bootloaders
97
96
#[ clap( visible_alias = "ls" ) ]
98
97
List ,
@@ -104,6 +103,8 @@ pub enum Bootloader {
104
103
// /// Configuration file containing settings
105
104
// config: String,
106
105
// },
106
+ /// Reboots (into device if firmware is valid)
107
+ Reboot ,
107
108
}
108
109
109
110
#[ derive( Subcommand ) ]
@@ -178,14 +179,14 @@ pub enum Apps {
178
179
pub enum Admin {
179
180
/// Print the application's AID
180
181
Aid ,
181
- /// Reboot device (as Solo 2)
182
- #[ clap( alias = "reboot" ) ]
183
- Restart ,
182
+ /// Is device locked? (not available in early firmware)
183
+ Locked ,
184
184
/// Switch device to maintenance mode (reboot into LPC 55 bootloader)
185
185
#[ clap( alias = "boot-to-bootrom" ) ]
186
186
Maintenance ,
187
- /// Is device locked? (not available in early firmware)
188
- Locked ,
187
+ /// Reboot device (as Solo 2)
188
+ #[ clap( alias = "reboot" ) ]
189
+ Restart ,
189
190
/// Return device UUID (not available over CTAP in early firmware)
190
191
Uuid ,
191
192
/// Return device firmware version
@@ -222,8 +223,6 @@ pub enum Ndef {
222
223
pub enum Oath {
223
224
/// Print the application's AID
224
225
Aid ,
225
- /// Register new credential
226
- Register ( OathRegister ) ,
227
226
// Authenticate,
228
227
/// Delete existing credential
229
228
Delete {
@@ -232,6 +231,8 @@ pub enum Oath {
232
231
} ,
233
232
/// List all credentials
234
233
List ,
234
+ /// Register new credential
235
+ Register ( OathRegister ) ,
235
236
/// Reset OATH app, deleting all credentials
236
237
Reset ,
237
238
/// Calculate TOTP for a registered credential
0 commit comments