- Replace cmd/stubs.go dorksCmd stub with full command tree - Add cmd/dorks.go with list, info, export subcommands - Wire Registry + custom_dorks merge for list/export - Bind GITHUB_TOKEN env var via viper for downstream run Satisfies part of DORK-03 (list/info/export) and DORK-04 (source/category filtering). run/add/delete land in Task 2.
45 lines
1.2 KiB
Go
45 lines
1.2 KiB
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// notImplemented returns a RunE function that prints a "not yet implemented" message.
|
|
// Each stub command is registered in root.go and satisfies CLI-01's 11-command requirement.
|
|
func notImplemented(name, phase string) func(cmd *cobra.Command, args []string) error {
|
|
return func(cmd *cobra.Command, args []string) error {
|
|
fmt.Printf("%s: not implemented in this phase (coming in %s)\n", name, phase)
|
|
return nil
|
|
}
|
|
}
|
|
|
|
var verifyCmd = &cobra.Command{
|
|
Use: "verify",
|
|
Short: "Actively verify found API keys (Phase 5)",
|
|
RunE: notImplemented("verify", "Phase 5"),
|
|
}
|
|
|
|
var reconCmd = &cobra.Command{
|
|
Use: "recon",
|
|
Short: "Run OSINT recon across internet sources (Phase 9+)",
|
|
RunE: notImplemented("recon", "Phase 9"),
|
|
}
|
|
|
|
// keysCmd is implemented in cmd/keys.go (Phase 6).
|
|
|
|
var serveCmd = &cobra.Command{
|
|
Use: "serve",
|
|
Short: "Start the web dashboard (Phase 18)",
|
|
RunE: notImplemented("serve", "Phase 18"),
|
|
}
|
|
|
|
// dorksCmd is implemented in cmd/dorks.go (Phase 8).
|
|
|
|
var scheduleCmd = &cobra.Command{
|
|
Use: "schedule",
|
|
Short: "Manage scheduled recurring scans (Phase 17)",
|
|
RunE: notImplemented("schedule", "Phase 17"),
|
|
}
|