func ReadLangObjects(policyPaths []string) ([]runtime.Object, error) {
	policyTypes := runtime.NewTypes().Append(lang.PolicyTypes...)
	codec := codec.NewYAMLCodec(policyTypes)
	if len(policyPaths) == 1 && policyPaths[0] == "-" {
		return readLangObjectsFromStdin(codec)
	} else if len(policyPaths) > 0 {
		return readLangObjectsFromFiles(policyPaths, codec)
	}
	return nil, fmt.Errorf("policy file path is not specified")
}
ReadLangObjects scans the provided files/dirs/stdin, finds Aptomi lang objects, parses and returns them
package io
import (
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
	"sort"
	"github.com/Aptomi/aptomi/pkg/api/codec"
	"github.com/Aptomi/aptomi/pkg/lang"
	"github.com/Aptomi/aptomi/pkg/runtime"
	"github.com/Aptomi/aptomi/pkg/util"
	log "github.com/sirupsen/logrus"
	yamlv2 "gopkg.in/yaml.v2"
)