Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAppsDir = "/opt/steam/apps"
Default application directory.
View Source
const DefaultDir = "/opt/steam/cmd"
Default Steam Console Client (SteamCMD) directory.
Variables ¶
View Source
var ( ErrNoAppId = errors.New("We're aleady running") ErrNoAppDir = errors.New("We're aleady running") )
View Source
var (
ErrAlreadyRunning = errors.New("We're aleady running")
)
Functions ¶
func AddQuestion ¶
AddQuestion registers a question the SteamCMD utility may ask to the user. The provided regex is used to match the output line from the SteamCMD utility, the regex must compile (causing a panic otherwise).
Types ¶
type Client ¶
func (*Client) GetApp ¶
GetApp returns an installed Steam application. If it returns nil the app is not installed.
func (*Client) InstallApp ¶
func (c *Client) InstallApp(id steam.AppId, i Interviewer) (err error)
InstallApp installs the app indicated by the provided Steam app id. When during the installation process steam has questions for you it will call the interviewer with a question.
type Installer ¶
type Interviewer ¶
Interviewer asks a question and expects an answer
Click to show internal directories.
Click to hide internal directories.