- cmd/serve.go: starts scheduler, optionally starts Telegram bot with --telegram flag - cmd/schedule.go: add/list/remove/run subcommands for scheduled scan job CRUD - pkg/scheduler/: gocron v2 based scheduler with DB-backed jobs and scan execution - pkg/storage/scheduled_jobs.go: scheduled_jobs table CRUD with tests - Remove serve and schedule stubs from cmd/stubs.go Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
33 lines
912 B
Go
33 lines
912 B
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"),
|
|
}
|
|
|
|
// reconCmd is implemented in cmd/recon.go (Phase 9).
|
|
|
|
// keysCmd is implemented in cmd/keys.go (Phase 6).
|
|
|
|
// serveCmd is implemented in cmd/serve.go (Phase 17).
|
|
|
|
// dorksCmd is implemented in cmd/dorks.go (Phase 8).
|
|
|
|
// scheduleCmd is implemented in cmd/schedule.go (Phase 17).
|