I want to use addCommand (^_^)/ #72
-
Hello! I'm ProblemI can not use Expected behaviorI can use Like this [<Sealed; Command>]
type MyCommand() =
inherit Command()
override __.Names = [|"mycmd"|]
override __.Summary = "aaa bbb ccc"
override __.Syntax = "ddd eee fff"
override __.Help = "Help Help Help"
override __.Process(args) =
AddCommand<StepOverCommand>() // <---- step over
// run my code after running step over
Log.Info("hello world") work around
reason
like this |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The correct way to do this is in the |
Beta Was this translation helpful? Give feedback.
-
Hello again! I'm So may I have question? I write code following: namespace Mono.Debugger.Client.Commands
[<Sealed; Command>]
type HelloWorld() =
inherit Command()
override __.Names = [|"bbbCmd"|]
override __.Summary = "aaa bbb ccc"
override __.Syntax = "ddd eee fff"
override __.Help = "Help Help Help"
override __.Process(args) =
Log.Info("hello world from bbbCmd")
[<Sealed; Command>]
type MyCommand() =
inherit MultiCommand()
override this.Names = [|"aaaCmd"|]
override this.Summary = "aaaaaaaaaaa"
override this.Syntax = "bbbbbbbbbbb"
override this.Help = "ccccccccccc"
member public this.MyCommand() =
this.AddCommand<HelloWorld>()
this.Forward<HelloWorld>()
Log.Info("hello world") result
Please tell me anything if you have nice idea! So sorry for |
Beta Was this translation helpful? Give feedback.
-
Hello again! I'm So, I can just do it ! Thank you for your advice! like this namespace Mono.Debugger.Client.Commands
open Mono.Debugger.Client
open Mono.Debugging.Client
type helloworld() =
inherit command()
override __.names = [|"bbbcmd"|]
override __.summary = "aaa bbb ccc"
override __.syntax = "ddd eee fff"
override __.help = "help help help"
override __.process(args) =
log.info("hello world from bbbcmd")
[<Sealed; Command>]
type MyCommand() =
inherit MultiCommand()
do base.AddCommand<HelloWorld>()
override this.Names = [|"aaaCmd"|]
override this.Summary = "aaaaaaaaaaa"
override this.Syntax = "bbbbbbbbbbb"
override this.Help = "ccccccccccc" |
Beta Was this translation helpful? Give feedback.
-
And thank you for Japanese F#ers! |
Beta Was this translation helpful? Give feedback.
Hello again! I'm
callmekohei
!So, I can just do it !
Thank you for your advice!
like this