2021-01-31 03:14:33 +00:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
|
|
|
|
"gitlab.com/signald/signald-go/signald"
|
|
|
|
)
|
|
|
|
|
2021-02-02 21:50:44 +00:00
|
|
|
const (
|
|
|
|
OutputFormatDefault = "default"
|
|
|
|
OutputFormatCSV = "csv"
|
|
|
|
OutputFormatTable = "table"
|
|
|
|
OutputFormatJSON = "json"
|
|
|
|
OutputFormatYAML = "yaml"
|
|
|
|
OutputFormatQR = "qr"
|
|
|
|
|
|
|
|
AnnotationNoSocketConnection = "no-socket"
|
|
|
|
)
|
|
|
|
|
2021-01-31 03:14:33 +00:00
|
|
|
var (
|
|
|
|
Signald *signald.Signald
|
|
|
|
|
|
|
|
OutputFormat string
|
|
|
|
)
|
|
|
|
|
|
|
|
func Must(err error) {
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|