File tree Expand file tree Collapse file tree 3 files changed +3
-36
lines changed Expand file tree Collapse file tree 3 files changed +3
-36
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ pub fn log_download_information(
172
172
173
173
let snapshot_converter_cmd = |flavor| {
174
174
format ! (
175
- "mithril-client --unstable tools utxo-hd snapshot-converter --db-directory {} --cardano-node-version {} --utxo-hd-flavor {} --commit" ,
175
+ "mithril-client tools utxo-hd snapshot-converter --db-directory {} --cardano-node-version {} --utxo-hd-flavor {} --commit" ,
176
176
db_dir. display( ) ,
177
177
cardano_node_version,
178
178
flavor,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use mithril_client::MithrilResult;
13
13
14
14
/// Tools commands
15
15
#[ derive( Subcommand , Debug , Clone ) ]
16
- #[ command( about = "[unstable] Tools commands" ) ]
16
+ #[ command( about = "Tools commands" ) ]
17
17
pub enum ToolsCommands {
18
18
/// UTxO-HD related commands
19
19
#[ clap( subcommand, name = "utxo-hd" ) ]
Original file line number Diff line number Diff line change @@ -250,10 +250,7 @@ impl ArtifactCommands {
250
250
Self :: GenerateDoc ( cmd) => {
251
251
cmd. execute ( & mut Args :: command ( ) ) . map_err ( |message| anyhow ! ( message) )
252
252
}
253
- Self :: Tools ( cmd) => {
254
- context. require_unstable ( "tools" , Some ( "utxo-hd snapshot-converter" ) ) ?;
255
- cmd. execute ( ) . await
256
- }
253
+ Self :: Tools ( cmd) => cmd. execute ( ) . await ,
257
254
}
258
255
}
259
256
}
@@ -281,36 +278,6 @@ async fn main() -> MithrilResult<()> {
281
278
mod tests {
282
279
use super :: * ;
283
280
284
- #[ tokio:: test]
285
- async fn fail_if_tools_command_is_used_without_unstable_flag ( ) {
286
- let args = Args :: try_parse_from ( [
287
- "mithril-client" ,
288
- "tools" ,
289
- "utxo-hd" ,
290
- "snapshot-converter" ,
291
- "--db-directory" ,
292
- "whatever" ,
293
- "--cardano-network" ,
294
- "preview" ,
295
- "--cardano-node-version" ,
296
- "1.2.3" ,
297
- "--utxo-hd-flavor" ,
298
- "Legacy" ,
299
- ] )
300
- . unwrap ( ) ;
301
-
302
- let error = args
303
- . execute ( Logger :: root ( slog:: Discard , slog:: o!( ) ) )
304
- . await
305
- . expect_err ( "Should fail if unstable flag missing" ) ;
306
-
307
- assert ! (
308
- error
309
- . to_string( )
310
- . contains( "subcommand is only accepted using the --unstable flag." )
311
- ) ;
312
- }
313
-
314
281
#[ tokio:: test]
315
282
async fn verify_subcommand_should_fail_with_cardano_db_v1 ( ) {
316
283
let args = Args :: try_parse_from ( [
You can’t perform that action at this time.
0 commit comments