packer-cn/plugin/post-processor-shell-local/main.go

16 lines
288 B
Go

package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/post-processor/shell-local"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterPostProcessor(new(shell_local.PostProcessor))
server.Serve()
}