a bunch of updates, including verify function

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
Dave Henderson
2018-08-09 00:30:16 -04:00
parent 946aa8c3f3
commit 008a314137
6 changed files with 318 additions and 52 deletions

21
cmd/init.go Normal file
View File

@ -0,0 +1,21 @@
package cmd
import (
"context"
"github.com/hairyhenderson/go-onerng"
"github.com/spf13/cobra"
)
// initCmd represents the init command
func initCmd(ctx context.Context) *cobra.Command {
return &cobra.Command{
Use: "init",
Short: "Initialize the RNG",
RunE: func(cmd *cobra.Command, args []string) error {
o := onerng.OneRNG{Path: opts.Device}
err := o.Init(ctx)
return err
},
}
}