Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

I want to use addCommand (^_^)/ #72

Discussion options

You must be logged in to vote

Hello again! I'm callmekohei!

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"

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by alexrp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #47 on June 12, 2021 09:16.