Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version can be set with -ldflags "-X github.com/vekio/overmind/internal/cli.Version=vX.Y.Z".

Functions

func New

func NewSetupCommand

func NewSetupCommand(configFile *configlib.ConfigFile[appconfig.Settings]) *urfavecli.Command

NewSetupCommand creates the interactive configuration command.

Types

type Client

Client provides the note operations used by the CLI.

type ClientFactory

type ClientFactory func(context.Context) (Client, error)

ClientFactory creates the client after command flags have been parsed.

type LocalClient

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

LocalClient runs CLI operations against the in-process application.

func NewLocalClient

func NewLocalClient(application *app.Application) *LocalClient

NewLocalClient adapts an application running in this process to the CLI.

func (*LocalClient) Capture

func (client *LocalClient) Capture(ctx context.Context, content string) (app.CaptureResult, error)

func (*LocalClient) CreateBookmark

func (client *LocalClient) CreateBookmark(ctx context.Context, url domain.URL, tags domain.Tags) (app.CreateBookmarkResult, error)

func (*LocalClient) CreateJournal

func (client *LocalClient) CreateJournal(ctx context.Context, tags domain.Tags) (app.CreateJournalResult, error)

func (*LocalClient) CreatePage

func (client *LocalClient) CreatePage(ctx context.Context, title domain.Title, area domain.Area, tags domain.Tags) (app.CreatePageResult, error)

func (*LocalClient) CreatePerson

func (client *LocalClient) CreatePerson(ctx context.Context, name domain.Title, groups domain.Groups, tags domain.Tags) (app.CreatePersonResult, error)

func (*LocalClient) DeleteNote

func (client *LocalClient) DeleteNote(ctx context.Context, id uuid.UUID) error

func (*LocalClient) FindJournal

func (client *LocalClient) FindJournal(ctx context.Context, date domain.Date) (uuid.UUID, bool, error)

func (*LocalClient) ListNotes

func (client *LocalClient) ListNotes(ctx context.Context) ([]app.ListedNote, error)

func (*LocalClient) OpenNote

func (client *LocalClient) OpenNote(ctx context.Context, id uuid.UUID) ([]byte, error)

func (*LocalClient) RebuildIndex

func (client *LocalClient) RebuildIndex(ctx context.Context) (int, error)

func (*LocalClient) UpdateNote

func (client *LocalClient) UpdateNote(ctx context.Context, id uuid.UUID, original, source []byte) (app.UpdateNoteResult, error)

Jump to

Keyboard shortcuts

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