MCPcopy Create free account
hub / github.com/basecamp/hey-cli / newUnseenCommand

Function newUnseenCommand

internal/cmd/seen.go:63–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func 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
80func (c *unseenCommand) run(cmd *cobra.Command, args []string) error {
81 if err := requireAuth(); err != nil {

Callers 1

newRootCmdFunction · 0.85

Calls 1

usageMinOneArgFunction · 0.85

Tested by

no test coverage detected