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

Function newThreadsCommand

internal/cmd/topic.go:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func newThreadsCommand() *topicCommand {
19 threadsCommand := &topicCommand{}
20 threadsCommand.cmd = &cobra.Command{
21 Use: "threads <id>",
22 Short: "Read an email thread",
23 Annotations: map[string]string{
24 "agent_notes": "Returns a thread with all entries. Use entry IDs with hey reply.",
25 },
26 Example: ` hey threads 12345
27 hey threads 12345 --json`,
28 RunE: threadsCommand.run,
29 Args: usageExactOneArg(),
30 }
31
32 return threadsCommand
33}
34
35func (c *topicCommand) run(cmd *cobra.Command, args []string) error {
36 if err := requireAuth(); err != nil {

Callers 1

newRootCmdFunction · 0.85

Calls 1

usageExactOneArgFunction · 0.85

Tested by

no test coverage detected