File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package phrase
33import (
44 "errors"
55 "fmt"
6- "io/ioutil"
76 "os"
87 "path/filepath"
98
@@ -32,8 +31,8 @@ type Config struct {
3231
3332 Defaults map [string ]map [string ]interface {}
3433
35- Targets []byte
36- Sources []byte
34+ Pull []byte
35+ Push []byte
3736
3837 UserAgent string
3938}
@@ -83,7 +82,7 @@ func configContent(cfgFilePath string) ([]byte, error) {
8382 case path == "" :
8483 return nil , nil
8584 default :
86- return ioutil .ReadFile (path )
85+ return os .ReadFile (path )
8786 }
8887}
8988
@@ -141,8 +140,8 @@ func (cfg *Config) UnmarshalYAML(unmarshal func(i interface{}) error) error {
141140 "per_page" : & cfg .PerPage ,
142141 "project_id" : & cfg .DefaultProjectID ,
143142 "file_format" : & cfg .DefaultFileFormat ,
144- "push" : & cfg .Sources ,
145- "pull" : & cfg .Targets ,
143+ "push" : & cfg .Push ,
144+ "pull" : & cfg .Pull ,
146145 "defaults" : & m ,
147146 })
148147 if err != nil {
You can’t perform that action at this time.
0 commit comments