cmd

package
v0.0.0-...-b69d7c4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT-0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright © 2024 almond Heil <contact@almendra.dev>

Copyright © 2024 almond Heil <contact@almendra.dev>

Copyright © 2024 almond Heil <contact@almendra.dev>

Copyright © 2024 almond Heil <contact@almendra.dev>

Copyright © 2024 almond Heil <contact@almendra.dev>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditNotes

func EditNotes(notedir string, note_titles []string) error

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Exists

func Exists(path string) bool

Types

type Config

type Config struct {
	Notedir     string `yaml:"note_dir"`
	Extension   string `yaml:"extension"`
	Editor      string `yaml:"editor"`
	ListThreads int    `yaml:"list_threads"`
}

type Frontmatter

type Frontmatter struct {
	Title string   `yaml:"title"`
	Date  string   `yaml:"date"`
	Tags  []string `yaml:"tags,flow"`
}

type Note

type Note struct {
	Filename string
	Matter   Frontmatter
}

func FindNotesFiltered

func FindNotesFiltered(notedir string, required_tags []string) ([]Note, error)

type ReadNoteResult

type ReadNoteResult struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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