- Add LEGAL.md at repo root (109 lines) covering CFAA, Computer Misuse Act, EU Directive 2013/40/EU, responsible use, disclosure, and disclaimer. - Mirror to pkg/legal/LEGAL.md for go:embed (Go cannot traverse parents). - Add pkg/legal package exposing Text() for the embedded markdown. - Add cmd/legal.go registering keyhunter legal subcommand to print it.
18 lines
320 B
Go
18 lines
320 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/salvacybersec/keyhunter/pkg/legal"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var legalCmd = &cobra.Command{
|
|
Use: "legal",
|
|
Short: "Print the legal disclaimer for the --verify feature",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
fmt.Println(legal.Text())
|
|
return nil
|
|
},
|
|
}
|