server

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	Text, Folder string
}

What words of /projects answered: the text a person reads, and the folder the session moved to, empty when it stayed

type From

type From struct {
	Profile, Session string
	// Folder relative folders of the words are read from, the session's own when empty
	Cwd string
	// A person a chat app limits to some of its commands, who runs only the verbs that read
	Limited bool
	// Typed in a chat through /projects rather than on the Projects screen: they bring into a project only folders inside the folder the
	// chat's session works in
	Chat bool
}

Who runs words of /projects: the profile they act as and the session they were typed in, empty for none

type Verbs

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

The words of /projects as chats and the screen run them: each verb on the projects of this computer, as the profile and the session they come from

func Register

func Register(registry *server.Registry, cfg *config.Config, host *projects.Projects, stores *sessions.Registry) *Verbs

Serves the projects to the screen and gives back the words of /projects for chats

func (*Verbs) Cd

func (v *Verbs) Cd(ctx context.Context, from From, text string) (string, error)

Moves the session of the words to work in another folder, as /cd does: a relative folder read in the one it works in, and from a chat only into a folder inside that one or of a project. With no folder named, says the one it works in

func (*Verbs) Help

func (v *Verbs) Help() string

What /projects help answers

func (*Verbs) Run

func (v *Verbs) Run(ctx context.Context, from From, line string) (Answer, error)

Runs the words after /projects: an error the person reads for words refused

Jump to

Keyboard shortcuts

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