20 lines
385 B
Go
20 lines
385 B
Go
package client
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
type (
|
|
// CLIHandlerFn defines a CLI command handler for evidence submission
|
|
CLIHandlerFn func() *cobra.Command
|
|
|
|
// EvidenceHandler wraps CLIHandlerFn.
|
|
EvidenceHandler struct {
|
|
CLIHandler CLIHandlerFn
|
|
}
|
|
)
|
|
|
|
func NewEvidenceHandler(cliHandler CLIHandlerFn) EvidenceHandler {
|
|
return EvidenceHandler{
|
|
CLIHandler: cliHandler,
|
|
}
|
|
}
|