refactor: moved all fatal errors to logrus

This will allow us to test commands that would normally exit
This commit is contained in:
2021-07-21 09:04:34 +01:00
parent 2158dc851c
commit 29971c36a0
4 changed files with 12 additions and 10 deletions

View File

@ -2,9 +2,9 @@ package cli
import (
"fmt"
"log"
"os"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
)
@ -46,6 +46,6 @@ func RunApp(version string, commit string) {
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
logrus.Fatal(err)
}
}