()
| 119 | ), |
| 120 | ) |
| 121 | } |
| 122 | |
| 123 | // read |
| 124 | |
| 125 | type journalReadCommand struct { |
| 126 | cmd *cobra.Command |
| 127 | } |
| 128 | |
| 129 | func newJournalReadCommand() *journalReadCommand { |
| 130 | journalReadCommand := &journalReadCommand{} |
| 131 | journalReadCommand.cmd = &cobra.Command{ |
| 132 | Use: "read [date]", |
| 133 | Short: "Read a journal entry (default: today)", |
| 134 | Example: ` hey journal read |
| 135 | hey journal read 2026-03-15 |
| 136 | hey journal read --html |
| 137 | hey journal read --json`, |
| 138 | RunE: journalReadCommand.run, |