mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Register command with subcommands (subcommands are not seperate plugins)
This commit is contained in:
parent
5508f7cf39
commit
e9e7768472
2 changed files with 1 additions and 15 deletions
|
|
@ -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…
Reference in a new issue