* Rename Meta to Metadata. * Rename Target's CloudOS and CloudScheduler properties to Cloud and Scheduler, respectively. Also rename Target's JSON properties to match (they had drifted); they are now "cloud" and "scheduler". * Rename Diags() to Diag() on the Compiler and Parser interfaces. * Rename defaultDiags to defaultSink, to match the interface name. * Add a few useful logging outputs.
19 lines
393 B
Go
19 lines
393 B
Go
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
package compiler
|
|
|
|
import (
|
|
"github.com/marapongo/mu/pkg/diag"
|
|
)
|
|
|
|
// Options contains all of the settings a user can use to control the compiler's behavior.
|
|
type Options struct {
|
|
Diag diag.Sink
|
|
}
|
|
|
|
// DefaultOpts returns the default set of compiler options.
|
|
func DefaultOpts() Options {
|
|
return Options{
|
|
Diag: diag.DefaultSink(),
|
|
}
|
|
}
|