package cli import ( "fmt" "github.com/spf13/cobra" ) var jobCmd = &cobra.Command{ Use: "job", Short: "Manage orca jobs", Long: "Run, list, stop, and inspect orca jobs.", } var jobRunCmd = &cobra.Command{ Use: "run ", Short: "Run a job from an HCL spec file", Long: "Submit a job spec and execute it. Implemented in Phase 3.", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { return notImplemented("orca job run " + args[0]) }, } var jobListCmd = &cobra.Command{ Use: "list", Short: "List all jobs", Long: "Display all jobs and their status. Implemented in Phase 3.", RunE: func(cmd *cobra.Command, args []string) error { return notImplemented("orca job list") }, } var jobStopCmd = &cobra.Command{ Use: "stop ", Short: "Stop a running job", Long: "Stop a job by ID. Implemented in Phase 3.", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { return notImplemented("orca job stop " + args[0]) }, } var jobLogsCmd = &cobra.Command{ Use: "logs ", Short: "Show logs for a job", Long: "Display the logs for a job by ID. Implemented in Phase 3.", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { return notImplemented("orca job logs " + args[0]) }, } func init() { jobCmd.AddCommand(jobRunCmd) jobCmd.AddCommand(jobListCmd) jobCmd.AddCommand(jobStopCmd) jobCmd.AddCommand(jobLogsCmd) rootCmd.AddCommand(jobCmd) } func notImplemented(cmd string) error { if jsonOutput { return printJSON(map[string]any{ "command": cmd, "status": "not_implemented", "phase": "1-cli-skeleton", "next": "Phase 2-6 will implement this", }) } fmt.Fprintf(rootCmd.ErrOrStderr(), "✗ %s: not yet implemented (Phase 1: CLI skeleton only)\n", cmd) fmt.Fprintf(rootCmd.ErrOrStderr(), " see .ciagent/ROADMAP.md for the full 6-phase plan\n") return fmt.Errorf("not implemented: %s", cmd) }