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: 15 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

View Source
const Command = "migrate"

What a person types after the slash to reach the verbs

View Source
const Usage = "[list] | plan|run <program> [--keys] [--overwrite|--rename] [--with|--without <part>…] [--preset <name>] [--into <profile>] " +
	"[--place <path>] [--part <name>…] | paste <program> [--run] <reply> | again [<program>] [--anyway] | undo <program> | " +
	"clean <program> [--dry] [--anyway] | prompt <program> | help"

What /migrate takes

Variables

This section is empty.

Functions

func Asked

func Asked(ask *migratev1.Ask) migrate.Ask

The ask of a request as the host takes it

func Described

func Described(plan migrate.Plan, hints bool) string

A plan as text: what comes and from where, by kind, then what to know; with hints, the words that change it

func Planned

func Planned(plan migrate.Plan) *migratev1.PlanResponse

A plan as the service answers it, every secret of it masked

Types

type From

type From struct {
	// Typed at this computer, in a session of the terminal app: where a plan, which names the person's files, is shown, and where an import,
	// which reads them and writes keys, runs
	Here bool
}

Who runs words of /migrate

type Verbs

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

The words of /migrate as a session or a chat app runs them, answered in text a person reads

func Register

func Register(host *server.Server, cfg *config.Config, mg *migrate.Migrate) *Verbs

Mounts the service of bringing in other agents' setups, and answers the verbs /migrate runs on it

func (*Verbs) Run

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

Runs the words after /migrate on the profile of the settings; what they answered, or an error the person reads

Jump to

Keyboard shortcuts

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