fix(loaders/file.go): changed to ignore stderr when loading git status

This commit is contained in:
Ryooooooga 2022-08-02 08:32:28 +09:00
parent f23547580a
commit 438038a4f1
No known key found for this signature in database
GPG key ID: 07CF200DFCC20C25
5 changed files with 64 additions and 1 deletions

View file

@ -44,6 +44,11 @@ func (self *FakeCmdObjRunner) RunWithOutput(cmdObj ICmdObj) (string, error) {
return output, err
}
func (self *FakeCmdObjRunner) RunWithOutputs(cmdObj ICmdObj) (string, string, error) {
output, err := self.RunWithOutput(cmdObj)
return output, "", err
}
func (self *FakeCmdObjRunner) RunAndProcessLines(cmdObj ICmdObj, onLine func(line string) (bool, error)) error {
output, err := self.RunWithOutput(cmdObj)
if err != nil {