File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ pub enum Command {
2424
2525 ScenariosGenerate ( CommandScenariosGenerate ) ,
2626 ScenariosRun ( CommandScenariosRun ) ,
27+ ScenariosList ( CommandScenariosList ) ,
2728}
2829
2930#[ derive( Debug , clap:: Args ) ]
@@ -57,6 +58,9 @@ pub struct CommandScenariosRun {
5758 pub name : String ,
5859}
5960
61+ #[ derive( Debug , clap:: Args ) ]
62+ pub struct CommandScenariosList { }
63+
6064impl Command {
6165 pub fn run ( self ) -> Result < ( ) , crate :: CommandError > {
6266 let rt = setup ( ) ;
@@ -155,6 +159,13 @@ impl Command {
155159 }
156160 } )
157161 }
162+ Self :: ScenariosList ( _) => {
163+ println ! ( "Available scenarios:" ) ;
164+ for scenario in Scenarios :: iter ( ) {
165+ println ! ( " {}" , scenario. to_str( ) )
166+ }
167+ Ok ( ( ) )
168+ }
158169 }
159170 }
160171}
You can’t perform that action at this time.
0 commit comments