A bunch of changes

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
Dave Henderson
2018-08-20 20:06:33 -04:00
parent 16a4d2826c
commit a1879b1eb0
16 changed files with 274 additions and 203 deletions

View File

@ -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)
}
}