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

Function newSeenCommand

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

Source from the content-addressed store, hash-verified

14}
15
16func 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
33func (c *seenCommand) run(cmd *cobra.Command, args []string) error {
34 if err := requireAuth(); err != nil {

Callers 1

newRootCmdFunction · 0.85

Calls 1

usageMinOneArgFunction · 0.85

Tested by

no test coverage detected