()
| 61 | } |
| 62 | |
| 63 | func newUnseenCommand() *unseenCommand { |
| 64 | unseenCommand := &unseenCommand{} |
| 65 | unseenCommand.cmd = &cobra.Command{ |
| 66 | Use: "unseen <posting-id>...", |
| 67 | Short: "Mark postings as unseen", |
| 68 | Example: ` hey unseen 12345 |
| 69 | hey unseen 12345 67890`, |
| 70 | Annotations: map[string]string{ |
| 71 | "agent_notes": "Accepts one or more posting IDs. Marks each as unseen/unread.", |
| 72 | }, |
| 73 | RunE: unseenCommand.run, |
| 74 | Args: usageMinOneArg(), |
| 75 | } |
| 76 | |
| 77 | return unseenCommand |
| 78 | } |
| 79 | |
| 80 | func (c *unseenCommand) run(cmd *cobra.Command, args []string) error { |
| 81 | if err := requireAuth(); err != nil { |
no test coverage detected