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

Function newJournalCommand

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

Source from the content-addressed store, hash-verified

16)
17
18type journalCommand struct {
19 cmd *cobra.Command
20}
21
22func newJournalCommand() *journalCommand {
23 journalCommand := &journalCommand{}
24 journalCommand.cmd = &cobra.Command{
25 Use: "journal",
26 Short: "Read and write journal entries",
27 Annotations: map[string]string{
28 "agent_notes": "Subcommands: list, read, write. Read defaults to today. Write accepts --content, stdin, or opens $EDITOR; content is Markdown, or raw HTML via --content-html.",
29 },
30 }
31
32 journalCommand.cmd.AddCommand(newJournalListCommand().cmd)
33 journalCommand.cmd.AddCommand(newJournalReadCommand().cmd)
34 journalCommand.cmd.AddCommand(newJournalWriteCommand().cmd)
35
36 return journalCommand

Callers 1

newRootCmdFunction · 0.85

Calls 3

newJournalListCommandFunction · 0.85
newJournalReadCommandFunction · 0.85
newJournalWriteCommandFunction · 0.85

Tested by

no test coverage detected