()
| 14 | } |
| 15 | |
| 16 | func newSeenCommand() *seenCommand { |
| 17 | seenCommand := &seenCommand{} |
| 18 | seenCommand.cmd = &cobra.Command{ |
| 19 | Use: "seen <posting-id>...", |
| 20 | Short: "Mark postings as seen", |
| 21 | Example: ` hey seen 12345 |
| 22 | hey seen 12345 67890`, |
| 23 | Annotations: map[string]string{ |
| 24 | "agent_notes": "Accepts one or more posting IDs. Marks each as seen/read.", |
| 25 | }, |
| 26 | RunE: seenCommand.run, |
| 27 | Args: usageMinOneArg(), |
| 28 | } |
| 29 | |
| 30 | return seenCommand |
| 31 | } |
| 32 | |
| 33 | func (c *seenCommand) run(cmd *cobra.Command, args []string) error { |
| 34 | if err := requireAuth(); err != nil { |
no test coverage detected