Register command with subcommands (subcommands are not seperate plugins)
This commit is contained in:
parent
5508f7cf39
commit
e9e7768472
@ -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{},
|
||||
),
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user