Documentation ¶
Index ¶
- func Init(dir string) (string, error)
- type Config
- type Repository
- func (r *Repository) Add(text string) (string, error)
- func (r *Repository) AllNotes(ctx context.Context) (<-chan *note.Note, <-chan error)
- func (r *Repository) Config() (*Config, error)
- func (r *Repository) Move(ctx context.Context, source, target string) (<-chan *note.Note, <-chan bool, <-chan error)
- func (r *Repository) Notes(ctx context.Context) (<-chan *note.Note, <-chan error)
- func (r *Repository) TagFileWith(file string, newTag string) (bool, error)
- func (r *Repository) Tags(ctx context.Context) (<-chan tag.Tag, <-chan error)
- func (r *Repository) UntagFile(file string, tagToRemove string) (bool, error)
- func (r *Repository) UntagFileRegex(file string, tagRegexToRemove string) (bool, error)
- func (r *Repository) WorkDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func ForWorkDir ¶
func ForWorkDir(dir string) (*Repository, error)
func (*Repository) Config ¶
func (r *Repository) Config() (*Config, error)
func (*Repository) TagFileWith ¶
func (r *Repository) TagFileWith(file string, newTag string) (bool, 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
Click to show internal directories.
Click to hide internal directories.