mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-02 12:43:17 -04:00
plugin/*: update to latest API
This commit is contained in:
@@ -6,5 +6,10 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
plugin.ServeCommand(new(validate.Command))
|
||||
server, err := plugin.Server()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
server.RegisterCommand(new(validate.Command))
|
||||
server.Serve()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user