add verify command to top and refactor result
package signatures
import (
- "fmt"
-
"github.com/spf13/cobra"
)
@@ -14,21 +12,5 @@ var Cmd = &cobra.Command{
func init() {
SignCommand.AddToParent(Cmd)
-}
-
-type SignatureResult struct {
- result string
-}
-
-func (s *SignatureResult) JSON() interface{} {
- return map[string]string{
- "result": fmt.Sprintf("%x", s.result),
- }
-}
-func (s *SignatureResult) String() string {
- return fmt.Sprintf("%x", s.result)
-}
-
-func (s *SignatureResult) Oneliner() string {
- return fmt.Sprintf("%x", s.result)
+ VerifyCommand.AddToParent(Cmd)
}
