File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pub const SPIN_WORKING_DIR: &str = "SPIN_WORKING_DIR";
32
32
#[ derive( Parser , Debug ) ]
33
33
#[ clap(
34
34
usage = "spin [COMMAND] [OPTIONS]" ,
35
- next_help_heading = "TRIGGER OPTIONS"
35
+ next_help_heading = help_heading :: < Executor > ( )
36
36
) ]
37
37
pub struct TriggerExecutorCommand < Executor : TriggerExecutor >
38
38
where
@@ -255,6 +255,12 @@ fn warn_if_wasm_build_slothful() -> sloth::SlothGuard {
255
255
sloth:: warn_if_slothful ( SLOTH_WARNING_DELAY_MILLIS , format ! ( "{message}\n " ) )
256
256
}
257
257
258
+ fn help_heading < E : TriggerExecutor > ( ) -> Option < & ' static str > {
259
+ let heading = format ! ( "{} TRIGGER OPTIONS" , E :: TRIGGER_TYPE . to_uppercase( ) ) ;
260
+ let as_str = Box :: new ( heading) . leak ( ) ;
261
+ Some ( as_str)
262
+ }
263
+
258
264
pub mod help {
259
265
use super :: * ;
260
266
You can’t perform that action at this time.
0 commit comments