pulumi/pkg/schema/files.go
joeduffy 79f5f312b8 Support .yml Mufile extensions
This change recognizes .yml in addition to the official .yaml extension,
since .yml is actually very commonly used.  In addition, while in here, I've
centralized more of the extensions logic so that it's more "data-driven"
and easier to manage down the road (one place to change rather than two).
2016-11-15 18:26:21 -08:00

15 lines
450 B
Go

// Copyright 2016 Marapongo, Inc. All rights reserved.
package schema
// MufileBase is the base name of the Mufile.
const MufileBase = "Mu"
// MufileExts is a map of extension to a Marshaler object for that extension.
var MufileExts = map[string]Marshaler{
".json": &jsonMarshaler{},
".yaml": &yamlMarshaler{},
// Although ".yml" is not a sanctioned YAML extension, it is used quite broadly; so we will support it.
".yml": &yamlMarshaler{},
}