Register command with subcommands (subcommands are not seperate plugins)

This commit is contained in:
sophia 2021-04-20 10:17:48 -05:00 committed by Paul Hinze
parent 5508f7cf39
commit e9e7768472
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 1 additions and 15 deletions

View File

@ -12,19 +12,7 @@ var CommandOptions = []sdk.Option{
sdk.WithComponents(
&Provider{},
&command.Command{},
),
}
var InfoOptions = []sdk.Option{
sdk.WithComponents(
&Provider{},
&command.Info{},
),
}
var DoThingOptions = []sdk.Option{
sdk.WithComponents(
&Provider{},
&command.DoThing{},
),
}

View File

@ -14,9 +14,7 @@ var (
// Builtins is the map of all available builtin plugins and their
// options for launching them.
Builtins = map[string][]sdk.Option{
"myplugin": myplugin.CommandOptions,
"myplugin dothing": myplugin.DoThingOptions,
"myplugin info": myplugin.InfoOptions,
"myplugin": myplugin.CommandOptions,
}
// Rubies is a map of all available plugins accessible via the