repository

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(dir string) (string, error)

Types

type Config

type Config struct {
	Editor string `yaml:"editor"`
}

func (*Config) EditorCommand

func (r *Config) EditorCommand() string

type Repository

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

func ForWorkDir

func ForWorkDir(dir string) (*Repository, error)

func (*Repository) Add

func (r *Repository) Add(text string) (string, error)

func (*Repository) AllNotes

func (r *Repository) AllNotes(ctx context.Context) (<-chan *note.Note, <-chan error)

func (*Repository) Config

func (r *Repository) Config() (*Config, error)

func (*Repository) Move

func (r *Repository) Move(ctx context.Context, source, target string) (<-chan *note.Note, <-chan bool, <-chan error)

func (*Repository) Notes

func (r *Repository) Notes(ctx context.Context) (<-chan *note.Note, <-chan error)

func (*Repository) TagFileWith

func (r *Repository) TagFileWith(file string, newTag string) (bool, error)

func (*Repository) Tags

func (r *Repository) Tags(ctx context.Context) (<-chan tag.Tag, <-chan error)

func (*Repository) UntagFile

func (r *Repository) UntagFile(file string, tagToRemove string) (bool, error)

func (*Repository) UntagFileRegex

func (r *Repository) UntagFileRegex(file string, tagRegexToRemove string) (bool, error)

func (*Repository) WorkDir

func (r *Repository) WorkDir() string

Jump to

Keyboard shortcuts

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