@@ -12,6 +12,7 @@ pub mod create;
12
12
pub mod dump;
13
13
pub mod inscribe;
14
14
pub mod inscriptions;
15
+ mod label;
15
16
pub mod mint;
16
17
pub mod outputs;
17
18
pub mod receive;
@@ -44,6 +45,8 @@ pub(crate) enum Subcommand {
44
45
Balance ,
45
46
#[ command( about = "Create inscriptions and runes" ) ]
46
47
Batch ( batch_command:: Batch ) ,
48
+ #[ command( about = "List unspent cardinal outputs in wallet" ) ]
49
+ Cardinals ,
47
50
#[ command( about = "Create new wallet" ) ]
48
51
Create ( create:: Create ) ,
49
52
#[ command( about = "Dump wallet descriptors" ) ]
@@ -52,8 +55,12 @@ pub(crate) enum Subcommand {
52
55
Inscribe ( inscribe:: Inscribe ) ,
53
56
#[ command( about = "List wallet inscriptions" ) ]
54
57
Inscriptions ,
58
+ #[ command( about = "Export output labels" ) ]
59
+ Label ,
55
60
#[ command( about = "Mint a rune" ) ]
56
61
Mint ( mint:: Mint ) ,
62
+ #[ command( about = "List all unspent outputs in wallet" ) ]
63
+ Outputs ,
57
64
#[ command( about = "Generate receive address" ) ]
58
65
Receive ( receive:: Receive ) ,
59
66
#[ command( about = "Restore wallet" ) ]
@@ -66,10 +73,6 @@ pub(crate) enum Subcommand {
66
73
Send ( send:: Send ) ,
67
74
#[ command( about = "See wallet transactions" ) ]
68
75
Transactions ( transactions:: Transactions ) ,
69
- #[ command( about = "List all unspent outputs in wallet" ) ]
70
- Outputs ,
71
- #[ command( about = "List unspent cardinal outputs in wallet" ) ]
72
- Cardinals ,
73
76
}
74
77
75
78
impl WalletCommand {
@@ -97,18 +100,19 @@ impl WalletCommand {
97
100
match self . subcommand {
98
101
Subcommand :: Balance => balance:: run ( wallet) ,
99
102
Subcommand :: Batch ( batch) => batch. run ( wallet) ,
103
+ Subcommand :: Cardinals => cardinals:: run ( wallet) ,
104
+ Subcommand :: Create ( _) | Subcommand :: Restore ( _) => unreachable ! ( ) ,
100
105
Subcommand :: Dump => dump:: run ( wallet) ,
101
106
Subcommand :: Inscribe ( inscribe) => inscribe. run ( wallet) ,
102
107
Subcommand :: Inscriptions => inscriptions:: run ( wallet) ,
108
+ Subcommand :: Label => label:: run ( wallet) ,
103
109
Subcommand :: Mint ( mint) => mint. run ( wallet) ,
110
+ Subcommand :: Outputs => outputs:: run ( wallet) ,
104
111
Subcommand :: Receive ( receive) => receive. run ( wallet) ,
105
112
Subcommand :: Resume => resume:: run ( wallet) ,
106
113
Subcommand :: Sats ( sats) => sats. run ( wallet) ,
107
114
Subcommand :: Send ( send) => send. run ( wallet) ,
108
115
Subcommand :: Transactions ( transactions) => transactions. run ( wallet) ,
109
- Subcommand :: Outputs => outputs:: run ( wallet) ,
110
- Subcommand :: Cardinals => cardinals:: run ( wallet) ,
111
- Subcommand :: Create ( _) | Subcommand :: Restore ( _) => unreachable ! ( ) ,
112
116
}
113
117
}
114
118
}
0 commit comments