2013-03-23 02:00:23 -04:00
|
|
|
// This is the main package for the `packer` application.
|
|
|
|
package main
|
|
|
|
|
2013-03-25 19:29:26 -04:00
|
|
|
import (
|
|
|
|
"github.com/mitchellh/packer/packer"
|
2013-04-20 21:00:03 -04:00
|
|
|
"fmt"
|
2013-03-25 19:29:26 -04:00
|
|
|
"os"
|
|
|
|
)
|
2013-03-23 21:40:26 -04:00
|
|
|
|
2013-03-23 02:00:23 -04:00
|
|
|
func main() {
|
2013-04-20 21:09:53 -04:00
|
|
|
env, err := packer.NewEnvironment(packer.DefaultEnvironmentConfig())
|
2013-04-20 21:00:03 -04:00
|
|
|
if err != nil {
|
|
|
|
fmt.Fprintf(os.Stderr, "Packer initialization error: \n\n%s\n", err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
|
2013-03-24 17:03:53 -04:00
|
|
|
os.Exit(env.Cli(os.Args[1:]))
|
2013-03-23 02:00:23 -04:00
|
|
|
}
|