abra/client/connection.go
Roxie Gibson 29971c36a0
All checks were successful
continuous-integration/drone/push Build is passing
refactor: moved all fatal errors to logrus
This will allow us to test commands that would normally exit
2021-07-21 09:04:34 +01:00

16 lines
288 B
Go

package client
import (
"github.com/docker/cli/cli/connhelper"
"github.com/sirupsen/logrus"
)
func newConnectionHelper(daemonURL string) *connhelper.ConnectionHelper {
helper, err := connhelper.GetConnectionHelper(daemonURL)
if err != nil {
logrus.Fatal(err)
}
return helper
}