Documentation ¶
Index ¶
- func IsOnPath() bool
- type AppInfo
- type AppInfoCommon
- type AppInfoConfig
- type AppInfoConfigLaunch
- type AppInfoConfigLaunchConfig
- type AppInfoExtended
- type AppInfoPrintCommand
- func (c AppInfoPrintCommand) AppInfo() *AppInfo
- func (c AppInfoPrintCommand) Args() ([]string, error)
- func (c AppInfoPrintCommand) Check(flags *PromptFlags) error
- func (c AppInfoPrintCommand) Modify(flags *PromptFlags) error
- func (c AppInfoPrintCommand) ReadOutput(ctx context.Context, r io.Reader) error
- func (c AppInfoPrintCommand) String() string
- type AppUpdateCommand
- type Command
- type CommandLine
- type ForceInstallDirCommand
- func (c ForceInstallDirCommand) Args() ([]string, error)
- func (ForceInstallDirCommand) Check(flags *PromptFlags) error
- func (c ForceInstallDirCommand) Modify(flags *PromptFlags) error
- func (c ForceInstallDirCommand) ReadOutput(ctx context.Context, r io.Reader) error
- func (c ForceInstallDirCommand) String() string
- type ForcePlatformTypeCommand
- func (c ForcePlatformTypeCommand) Args() ([]string, error)
- func (c ForcePlatformTypeCommand) Check(flags *PromptFlags) error
- func (c ForcePlatformTypeCommand) Modify(flags *PromptFlags) error
- func (c ForcePlatformTypeCommand) ReadOutput(ctx context.Context, r io.Reader) error
- func (c ForcePlatformTypeCommand) String() string
- type LoginCommand
- type PlatformType
- type Prompt
- type PromptFlags
- type QuitCommand
- type Steamcmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppInfo ¶
type AppInfo struct { Common *AppInfoCommon `json:"common,omitempty"` Extended *AppInfoExtended `json:"extended,omitempty"` Config *AppInfoConfig `json:"config,omitempty"` }
type AppInfoCommon ¶
type AppInfoConfig ¶
type AppInfoConfig struct { Launch map[string]AppInfoConfigLaunch `json:"launch,omitempty"` ContentType string `json:"contenttype,omitempty"` InstallDir string `json:"installdir,omitempty"` }
type AppInfoConfigLaunch ¶
type AppInfoConfigLaunch struct { Executable string `json:"executable,omitempty"` Arguments string `json:"arguments,omitempty"` Config *AppInfoConfigLaunchConfig `json:"config,omitempty"` }
type AppInfoExtended ¶
type AppInfoExtended struct { Developer string `json:"developer,omitempty"` GameDir string `json:"gamedir,omitempty"` Homepage string `json:"homepage,omitempty"` Icon string `json:"icon,omitempty"` NoServers string `json:"noservers,omitempty"` PrimaryCache string `json:"primarycache,omitempty"` SourceGame string `json:"sourcegame,omitempty"` State string `json:"state,omitempty"` VisibleOnlyWhenInstalled string `json:"visibleonlywheninstalled,omitempty"` VisibleOnlyWhenSubscribed string `json:"visibleonlywhensubscribed,omitempty"` }
type AppInfoPrintCommand ¶
type AppInfoPrintCommand string
func (AppInfoPrintCommand) AppInfo ¶
func (c AppInfoPrintCommand) AppInfo() *AppInfo
func (AppInfoPrintCommand) Args ¶
func (c AppInfoPrintCommand) Args() ([]string, error)
func (AppInfoPrintCommand) Check ¶
func (c AppInfoPrintCommand) Check(flags *PromptFlags) error
func (AppInfoPrintCommand) Modify ¶
func (c AppInfoPrintCommand) Modify(flags *PromptFlags) error
func (AppInfoPrintCommand) ReadOutput ¶
func (AppInfoPrintCommand) String ¶
func (c AppInfoPrintCommand) String() string
type AppUpdateCommand ¶
func (*AppUpdateCommand) Args ¶
func (c *AppUpdateCommand) Args() ([]string, error)
func (*AppUpdateCommand) Check ¶
func (*AppUpdateCommand) Check(flags *PromptFlags) error
func (*AppUpdateCommand) Modify ¶
func (c *AppUpdateCommand) Modify(flags *PromptFlags) error
func (*AppUpdateCommand) ReadOutput ¶
type CommandLine ¶
type CommandLine struct { ForceInstallDir string Login *LoginCommand ForcePlatformType PlatformType AppUpdate *AppUpdateCommand }
func (*CommandLine) Args ¶
func (c *CommandLine) Args() ([]string, error)
type ForceInstallDirCommand ¶
type ForceInstallDirCommand string
func (ForceInstallDirCommand) Args ¶
func (c ForceInstallDirCommand) Args() ([]string, error)
func (ForceInstallDirCommand) Check ¶
func (ForceInstallDirCommand) Check(flags *PromptFlags) error
func (ForceInstallDirCommand) Modify ¶
func (c ForceInstallDirCommand) Modify(flags *PromptFlags) error
func (ForceInstallDirCommand) ReadOutput ¶
func (ForceInstallDirCommand) String ¶
func (c ForceInstallDirCommand) String() string
type ForcePlatformTypeCommand ¶
type ForcePlatformTypeCommand PlatformType
func (ForcePlatformTypeCommand) Args ¶
func (c ForcePlatformTypeCommand) Args() ([]string, error)
func (ForcePlatformTypeCommand) Check ¶
func (c ForcePlatformTypeCommand) Check(flags *PromptFlags) error
func (ForcePlatformTypeCommand) Modify ¶
func (c ForcePlatformTypeCommand) Modify(flags *PromptFlags) error
func (ForcePlatformTypeCommand) ReadOutput ¶
func (ForcePlatformTypeCommand) String ¶
func (c ForcePlatformTypeCommand) String() string
type LoginCommand ¶
func (*LoginCommand) Args ¶
func (c *LoginCommand) Args() ([]string, error)
func (*LoginCommand) Check ¶
func (c *LoginCommand) Check(flags *PromptFlags) error
func (*LoginCommand) Modify ¶
func (*LoginCommand) Modify(flags *PromptFlags) error
func (*LoginCommand) ReadOutput ¶
type PlatformType ¶
type PlatformType string
var ( PlatformTypeWindows PlatformType = "windows" PlatformTypeLinux PlatformType = "linux" PlatformTypeMacOS PlatformType = "macos" )
func (PlatformType) String ¶
func (t PlatformType) String() string
type PromptFlags ¶
type PromptFlags struct {
LoggedIn bool
}
type QuitCommand ¶
type QuitCommand byte
func (*QuitCommand) Args ¶
func (c *QuitCommand) Args() ([]string, error)
func (QuitCommand) Check ¶
func (c QuitCommand) Check(flags *PromptFlags) error
func (QuitCommand) Modify ¶
func (c QuitCommand) Modify(flags *PromptFlags) error
func (*QuitCommand) ReadOutput ¶
Click to show internal directories.
Click to hide internal directories.