File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ pub enum Command {
64
64
GenerateFiles ( GenerateFilesArgs ) ,
65
65
/// Generate a signature for Stacking transactions
66
66
GenerateStackingSignature ( GenerateStackingSignatureArgs ) ,
67
+ /// Check a configuration file and output config information
68
+ CheckConfig ( RunSignerArgs ) ,
67
69
}
68
70
69
71
/// Basic arguments for all cyrptographic and stacker-db functionality
Original file line number Diff line number Diff line change @@ -350,6 +350,11 @@ fn handle_generate_stacking_signature(
350
350
signature
351
351
}
352
352
353
+ fn handle_check_config ( args : RunSignerArgs ) {
354
+ let config = GlobalConfig :: try_from ( & args. config ) . unwrap ( ) ;
355
+ println ! ( "Config: {}" , config) ;
356
+ }
357
+
353
358
/// Helper function for writing the given contents to filename in the given directory
354
359
fn write_file ( dir : & Path , filename : & str , contents : & str ) {
355
360
let file_path = dir. join ( filename) ;
@@ -398,6 +403,9 @@ fn main() {
398
403
Command :: GenerateStackingSignature ( args) => {
399
404
handle_generate_stacking_signature ( args, true ) ;
400
405
}
406
+ Command :: CheckConfig ( args) => {
407
+ handle_check_config ( args) ;
408
+ }
401
409
}
402
410
}
403
411
You can’t perform that action at this time.
0 commit comments