()
| 16 | ) |
| 17 | |
| 18 | type journalCommand struct { |
| 19 | cmd *cobra.Command |
| 20 | } |
| 21 | |
| 22 | func 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 |
no test coverage detected