(deps commandDeps)
| 54 | ) |
| 55 | |
| 56 | func newSessionCommand(deps commandDeps) *cobra.Command { |
| 57 | cmd := &cobra.Command{ |
| 58 | Use: sessionSessionKey, |
| 59 | Short: "Manage AGH sessions", |
| 60 | } |
| 61 | |
| 62 | cmd.AddCommand(newSessionCreateCommand(deps)) |
| 63 | cmd.AddCommand(newSessionListCommand(deps)) |
| 64 | cmd.AddCommand(newSessionStopCommand(deps)) |
| 65 | cmd.AddCommand(newSessionRemoveCommand(deps)) |
| 66 | cmd.AddCommand(newSessionSoulCommand(deps)) |
| 67 | cmd.AddCommand(newSessionHealthCommand(deps)) |
| 68 | cmd.AddCommand(newSessionStatusCommand(deps)) |
| 69 | cmd.AddCommand(newSessionInspectCommand(deps)) |
| 70 | cmd.AddCommand(newSessionResumeCommand(deps)) |
| 71 | cmd.AddCommand(newSessionRecapCommand(deps)) |
| 72 | cmd.AddCommand(newSessionRepairCommand(deps)) |
| 73 | cmd.AddCommand(newSessionApproveCommand(deps)) |
| 74 | cmd.AddCommand(newSessionWaitCommand(deps)) |
| 75 | cmd.AddCommand(newSessionPromptCommand(deps)) |
| 76 | cmd.AddCommand(newSessionEventsCommand(deps)) |
| 77 | cmd.AddCommand(newSessionHistoryCommand(deps)) |
| 78 | |
| 79 | return cmd |
| 80 | } |
| 81 | |
| 82 | func newSessionCreateCommand(deps commandDeps) *cobra.Command { |
| 83 | var ( |
no test coverage detected