Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type KeysCmd ¶ added in v0.2.0
type KeysCmd struct { List KeysListCmd `cmd:"" help:"List keys in a directory." aliases:"ls"` Copy KeysCopyCmd `cmd:"" help:"Copy keys to a directory." aliases:"cp"` }
type KeysCopyCmd ¶ added in v0.2.0
type KeysCopyCmd struct { From string `help:"Directory to recursively find and copy *.bikey files." type:"existingDir" short:"s" required:"true"` To string `help:"Directory to copy keys to." type:"existingDir" short:"d" required:"true"` }
func (*KeysCopyCmd) Run ¶ added in v0.2.0
func (c *KeysCopyCmd) Run(ctx *Context) error
type KeysListCmd ¶ added in v0.2.0
type KeysListCmd struct {
Directory string `help:"Path to directory to list keys in." type:"existingDir" short:"d" required:"true"`
}
func (*KeysListCmd) Run ¶ added in v0.2.0
func (c *KeysListCmd) Run(ctx *Context) error
type ListModsCmd ¶
type ListModsCmd struct { Check bool `help:"Check if mods from preset exist in mods directory." default:"false" short:"c"` Preset string `help:"Path to preset file." type:"existingFile" short:"p"` Directory string `help:"Path to directory to check mods exist in." type:"existingDir" short:"d"` }
func (*ListModsCmd) Run ¶
func (c *ListModsCmd) Run(ctx *Context) error
type ModsCmd ¶
type ModsCmd struct { Keys KeysCmd `cmd:"" help:"List keys in a directory." aliases:"k"` List ListModsCmd `cmd:"" help:"List mods in directory or HTML mod preset." aliases:"ls"` Sync SyncModsCmd `cmd:"" help:"Sync mods from a source directory to a destination." aliases:"s"` }
type ReforgerCmd ¶ added in v0.4.0
type ReforgerCmd struct {
Validate ValidateCmd `cmd:"" help:"Validate a reforger server config."`
}
type ServerCmd ¶ added in v0.1.7
type ServerCmd struct {
*ServerOptions `embed:""`
}
type ServerOptions ¶ added in v0.2.0
type ServerOptions struct { Binary string `env:"ARMA_BINARY" default:"./arma3server_x64"` CDLC string `env:"ARMA_CDLC"` Config string `env:"ARMA_CONFIG" default:"server.cfg"` Port uint16 `env:"ARMA_PORT" default:"2302"` SkipInstall bool `env:"SKIP_INSTALL" default:"false"` ModsLocal []string `env:"ARMA_MODS" sep:";" default:""` ModsServer []string `env:"ARMA_MODS_SERVER" sep:";" default:""` World string `env:"ARMA_WORLD" default:"empty"` LimitFPS uint8 `env:"ARMA_LIMITFPS" default:"100"` HeadlessClients uint8 `env:"HEADLESS_CLIENTS" aliases:"hc" default:"0"` HeadlessClientsProfile string `env:"HEADLESS_CLIENTS_PROFILE" aliases:"hcp" default:"hc"` HeadlessClientsServer string `env:"HEADLESS_CLIENTS_SERVER" default:"127.0.0.1"` Params string `env:"ARMA_PARAMS"` Profile string `env:"ARMA_PROFILE" default:"main"` SteamBranch string `env:"STEAM_BRANCH" default:"public"` SteamBranchPassword string `env:"STEAM_BRANCH_PASSWORD"` SteamUser string `env:"STEAM_USER"` SteamPassword string `env:"STEAM_PASSWORD"` DryRun bool `env:"DRY_RUN" short:"d" default:"false"` }
type SteamCmd ¶ added in v0.2.0
type SteamCmd struct {
Inspect SteamInspectCmd `cmd:"" help:"Inspect an arma steam server."`
}
type SteamInspectCmd ¶ added in v0.2.0
type SteamInspectCmd struct {
Address string `arg:"true" help:"Host of the server to query. (default localhost:2303)" default:"localhost:2303"`
}
func (*SteamInspectCmd) Run ¶ added in v0.2.0
func (c *SteamInspectCmd) Run(ctx *Context) error
type SyncModsCmd ¶
type SyncModsCmd struct { From []string `help:"Path(s) to directory to sync mods from." type:"existingDir" short:"f" required:"true"` To []string `help:"Path(s) to directory to sync mods to." type:"existingDir" short:"t" required:"true"` }
func (*SyncModsCmd) Run ¶
func (c *SyncModsCmd) Run(ctx *Context) error
type ValidateCmd ¶ added in v0.4.0
type ValidateCmd struct {
Config string `arg:"" help:"Path to reforger config file." type:"existingFile"`
}
func (*ValidateCmd) Run ¶ added in v0.4.0
func (c *ValidateCmd) Run(ctx *Context) error
type VersionCmd ¶
type VersionCmd struct{}
func (*VersionCmd) Run ¶
func (cmd *VersionCmd) Run(ctx *Context) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.