22 lines
469 B
Go
22 lines
469 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
|
|
"gitea.maximumdirect.net/eric/notarius/internal/cli"
|
|
"go.maximumdirect.net/commandkit"
|
|
"go.maximumdirect.net/releasekit/buildinfo"
|
|
)
|
|
|
|
func main() {
|
|
app, err := cli.NewApplication(buildinfo.Version(), cli.Options{})
|
|
if err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
outcome := app.Execute(context.Background(), os.Args[1:], commandkit.Streams{Out: os.Stdout, Err: os.Stderr})
|
|
os.Exit(outcome.Status)
|
|
}
|