35 lines
733 B
Go
35 lines
733 B
Go
// ©AngelaMos | 2026
|
|
// stubs.go
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func notImplemented(milestone string) func(*cobra.Command, []string) error {
|
|
return func(cmd *cobra.Command, args []string) error {
|
|
return fmt.Errorf("%s is not implemented yet (%s)", cmd.Name(), milestone)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
stubs := []struct {
|
|
use string
|
|
short string
|
|
milestone string
|
|
}{
|
|
{"ideate", "Generate content angles from ranked clusters via an AI provider", "milestone M6"},
|
|
{"watch", "Run as a daemon, re-ingesting on an interval", "milestone M7"},
|
|
}
|
|
for _, s := range stubs {
|
|
rootCmd.AddCommand(&cobra.Command{
|
|
Use: s.use,
|
|
Short: s.short,
|
|
RunE: notImplemented(s.milestone),
|
|
})
|
|
}
|
|
}
|