Versions in this module Expand all Collapse all v1 v1.7.0 Nov 18, 2026 v1.6.0 Nov 16, 2026 Changes in this version + const NoValue + const Yes + func NoAnswerError(question string) string + type AskArgs struct + Choices []string + Default *string + Question string + Secret bool v1.5.0 Nov 10, 2026 v1.4.1 Nov 7, 2026 v1.4.0 Nov 4, 2026 v1.3.0 Nov 2, 2026 Changes in this version + const MaxRequest + const No + const NoAnswer + const NotRunning + const OK + const Refused + const SockVar + const TokenVar + const Version + var ErrNotRunning = errors.New("not running under mdsh") + var ErrUnsupported = errors.New("the control socket is not supported on Windows yet") — windows/amd64 + type Handler func(caller any, req Request) Response + type NameArgs struct + Name string + type Request struct + Args json.RawMessage + Cmd string + Token string + V int + type Response struct + Code int + Error string + OK bool + V int + Value string + func Call(path, token, cmd string, args any) (Response, error) + func Done(value string) Response + func Refuse(format string, a ...any) Response + type Server struct + func Listen(h Handler) (*Server, error) + func (s *Server) Close() error + func (s *Server) Issue(caller any) string + func (s *Server) Path() string + func (s *Server) Revoke(token string) + type SetArgs struct + Name string + Secret bool + Value string + type StatusArgs struct + Of int + Step int + Text string