mirror of
https://github.com/hairyhenderson/go-onerng.git
synced 2025-07-07 19:05:08 -05:00
A bunch of changes
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
// onerng: OneRNG hardware random number generation utility
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
||||
"github.com/hairyhenderson/go-onerng/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -26,5 +27,10 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
cmd.Execute(ctx)
|
||||
cmd := rootCmd(ctx)
|
||||
initConfig(ctx, cmd)
|
||||
if err := cmd.Execute(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user