diff --git a/builtin/myplugin/command/command.go b/builtin/myplugin/command/command.go index 33b5262cb..749d6a5be 100644 --- a/builtin/myplugin/command/command.go +++ b/builtin/myplugin/command/command.go @@ -42,7 +42,7 @@ func (c *Command) ExecuteFunc([]string) interface{} { } // CommandInfoFunc implements component.Command -func (c *Command) CommandInfoFunc() interface{} { +func (c *Command) CommandInfoFunc([]string) interface{} { return c.CommandInfo } diff --git a/builtin/myplugin/command/dothing.go b/builtin/myplugin/command/dothing.go index 2ba8e82af..9026fb9a4 100644 --- a/builtin/myplugin/command/dothing.go +++ b/builtin/myplugin/command/dothing.go @@ -40,7 +40,7 @@ func (c *DoThing) ExecuteFunc([]string) interface{} { } // CommandInfoFunc implements component.Command -func (c *DoThing) CommandInfoFunc() interface{} { +func (c *DoThing) CommandInfoFunc([]string) interface{} { return c.CommandInfo } diff --git a/builtin/myplugin/command/info.go b/builtin/myplugin/command/info.go index 0e7f63055..f3dc05ee9 100644 --- a/builtin/myplugin/command/info.go +++ b/builtin/myplugin/command/info.go @@ -42,7 +42,7 @@ func (c *Info) ExecuteFunc([]string) interface{} { } // CommandInfoFunc implements component.Command -func (c *Info) CommandInfoFunc() interface{} { +func (c *Info) CommandInfoFunc([]string) interface{} { return c.CommandInfo } diff --git a/internal/core/basis.go b/internal/core/basis.go index b02771ff7..2ea821528 100644 --- a/internal/core/basis.go +++ b/internal/core/basis.go @@ -98,7 +98,7 @@ func (b *Basis) Init() (result *vagrant_server.Job_InitResult, err error) { continue } b.logger.Trace("started a new plugin for init", "name", name) - cmdInfo, err := cmd.CommandInfo() + cmdInfo, err := cmd.CommandInfo([]string{name}) if err != nil { b.logger.Error("failed to get command info for command "+name, "error", err) } diff --git a/internal/core/project.go b/internal/core/project.go index 048b7a282..421a666ce 100644 --- a/internal/core/project.go +++ b/internal/core/project.go @@ -200,7 +200,6 @@ func (p *Project) specializeComponent(c *Component) (cmp plugin.PluginMetadata, func (p *Project) Run(ctx context.Context, task *vagrant_server.Task) (err error) { p.logger.Debug("running new task", "project", p, "task", task) - // componentName := strings.Split(task.Component.Name, " ")[0] cmd, err := p.basis.component(ctx, component.CommandType, task.Component.Name) if err != nil { return err