Documentation
¶
Overview ¶
Package configcommand imports persistent frontend and relay choices.
Index ¶
Constants ¶
const Usage = "Usage: " + commandmeta.Name + " config import <file|-> [--front-url <url>] [-v|--verbose]\n" +
" Replace sharing defaults; --front-url saves the website address; '-' reads JSON from stdin.\n"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineOutput ¶
type LineOutput interface {
WriteLines(...string)
}
LineOutput commits complete diagnostic records immediately; it is not a byte stream.
type Runner ¶
type Runner struct {
Input io.Reader
Output LineOutput
TraceHandler slog.Handler
Save func(relayconfig.Config) error
}
Runner keeps the destination authority injected so embedded callers cannot accidentally modify the developer's personal configuration.