journalCMD

package
v0.0.0-...-a435d69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JournalCMD = &cobra.Command{
	Use:   "journal",
	Short: "Create Journals",
	Long:  "Create and write journals in terminal",
	Run: func(c *cobra.Command, args []string) {
		p := tea.NewProgram(initialModel())

		if _, err := p.Run(); err != nil {
			fmt.Printf("Error donkey: \n%v\n", err)
			return
		}
	},
}

Functions

func LoadJournals

func LoadJournals() error

func SaveJournals

func SaveJournals() error

Types

type Journal

type Journal struct {
	ID        int       `json:"id"`
	Title     string    `json:"title"`
	Body      string    `json:"body"`
	CreatedAt time.Time `json:"createdAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL