8a7fbf019c
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
26 lines
460 B
Go
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)
|
|
}
|
|
}
|