mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
29 lines
330 B
Go
29 lines
330 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/effective-security/trustyca/server/app"
|
|
)
|
|
|
|
const (
|
|
rcError = 1
|
|
rcSuccess = 0
|
|
)
|
|
|
|
func main() {
|
|
rc := rcSuccess
|
|
|
|
app := app.NewApp(os.Args[1:])
|
|
|
|
err := app.Run(nil)
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "ERROR: %+v\n", err)
|
|
rc = rcError
|
|
}
|
|
app.Close()
|
|
|
|
os.Exit(rc)
|
|
}
|