Merge pull request #1061 from hangyan/fix/stdin

Support read data from stdin
This commit is contained in:
Hang Yan
2018-10-02 10:33:47 +08:00
committed by GitHub
6 changed files with 79 additions and 20 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ limitations under the License.
package compose
import (
"io/ioutil"
"strconv"
"strings"
"time"
@@ -77,7 +76,7 @@ func parseV3(files []string) (kobject.KomposeObject, error) {
var config *types.Config
for _, file := range files {
// Load and then parse the YAML first!
loadedFile, err := ioutil.ReadFile(file)
loadedFile, err := ReadFile(file)
if err != nil {
return kobject.KomposeObject{}, err
}