Documentation ¶
Index ¶
- Constants
- func PathEnvDecoder() kong.MapperFunc
- func WithConn(addr string, fn func(client zproto.ZanderClient) error) error
- func WithConnTimeout(addr string, timeout time.Duration, ...) error
- func XDGRuntimeFile() kong.MapperFunc
- type AttachCmd
- type CmdCtx
- type ListServersCmd
- type LogsCmd
- type ReloadCmd
- type RestartServerCmd
- type Server
- type StartServerCmd
- type StopServerCmd
- type VersionCmd
Constants ¶
View Source
const DefaultTimeout = time.Second * 15
Variables ¶
This section is empty.
Functions ¶
func PathEnvDecoder ¶
func PathEnvDecoder() kong.MapperFunc
func WithConnTimeout ¶
func XDGRuntimeFile ¶
func XDGRuntimeFile() kong.MapperFunc
Types ¶
type AttachCmd ¶
type AttachCmd struct { ID string `arg:"" required:"true" help:"ID of doom server to attach to" predictor:"server_list"` Output string `flag:"" enum:"raw,default" default:"default" help:"Output mode. (valid values: ${enum})"` ScrollLines int `flag:"" default:"5" help:"How many lines to scroll when pgup and pgdn are pressed. Only valid in default output mode"` CmdHistoryLen int `flag:"" default:"500" help:"How many entered commands to remember"` DeDuplicatedHistoryAppend bool `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
type ListServersCmd ¶
type ListServersCmd struct { Output string `` /* 135-byte string literal not displayed */ Columns []string `` /* 277-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListServersCmd) Run ¶
func (l *ListServersCmd) Run(cmdCtx CmdCtx) error
type LogsCmd ¶ added in v0.1.9
type RestartServerCmd ¶
type RestartServerCmd struct {
Ids []string `arg:"" required:"true" help:"Doom servers to restart" predictor:"server_list"`
}
func (*RestartServerCmd) Run ¶
func (r *RestartServerCmd) Run(cmdCtx CmdCtx) error
type Server ¶
type Server struct { ConfigDir string `flag:"" short:"c" type:"path" description:"Directory containing zander configuration. Defaults to $XDG_CONFIG_HOME/zander"` // contains filtered or unexported fields }
type StartServerCmd ¶
type StartServerCmd struct {
Ids []string `arg:"" required:"true" help:"Doom servers to start" predictor:"server_list"`
}
func (*StartServerCmd) Run ¶
func (r *StartServerCmd) Run(cmdCtx CmdCtx) error
type StopServerCmd ¶
type StopServerCmd struct {
Ids []string `arg:"" required:"true" help:"Doom servers to stop" predictor:"server_list"`
}
func (*StopServerCmd) Run ¶
func (r *StopServerCmd) Run(cmdCtx CmdCtx) error
type VersionCmd ¶
type VersionCmd struct{}
func (*VersionCmd) Run ¶
func (v *VersionCmd) Run(ctx CmdCtx) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.