garden

package
v0.0.0-...-56ccd80 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	roam.Context

	// GardenDir is the directory that the garden is planted in.
	GardenDir() string
}

Context represents values needed by the garden.

func NewContext

func NewContext() Context

NewContext returns a new garden context.

type Gardener

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

Gardener plants nodes in the garden.

func NewGardener

func NewGardener(ctx Context, roamDir roam.Directory) (*Gardener, error)

NewGardener returns a new gardener and builds backlings from the given roam directory.

func (Gardener) Plant

func (g Gardener) Plant(ctx Context, stub roam.Stub) error

Plants puts a note in a garden.

Jump to

Keyboard shortcuts

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