signald-go/cmd/signaldctl/common/signald.go

33 lines
498 B
Go
Raw Normal View History

2021-01-31 03:14:33 +00:00
package common
import (
"log"
"gitlab.com/signald/signald-go/signald"
)
const (
OutputFormatDefault = "default"
OutputFormatCSV = "csv"
OutputFormatTable = "table"
OutputFormatJSON = "json"
OutputFormatYAML = "yaml"
OutputFormatQR = "qr"
OutputFormatMarkdown = "md"
OutputFormatMan = "man"
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)
}
}