pulumi/main.go
joeduffy 8a7fbf019c Add the ability to select a cloud provider
This adds two packages:

        mu/pkg/compiler/clouds
        mu/pkg/compiler/schedulers

And introduces enums for the cloud targets we expect to support.

It also adds the ability at the command line to specify a provider;
for example:

        $ mu build --target=aws         # AWS native
        $ mu build --target=aws:ecs     # AWS ECS
        $ mu build -t=gcp:kubernetes    # Kube on GCP
2016-11-17 07:00:52 -08:00

26 lines
460 B
Go

// Copyright 2016 Marapongo, Inc. All rights reserved.
package main
import (
"flag"
"fmt"
"os"
"github.com/golang/glog"
"github.com/marapongo/mu/cmd"
)
func main() {
// Ensure the glog library has been initialized, including calling flag.Parse beforehand.
flag.Parse()
glog.Info("Mu CLI is running")
defer glog.Flush()
if err := cmd.NewMuCmd().Execute(); err != nil {
fmt.Fprintf(os.Stderr, "An error occurred: %v\n", err)
os.Exit(-1)
}
}