Documentation
¶
Index ¶
- Variables
- func Args(flags *Flags, commands ...Command) ([]string, error)
- func Clean() error
- func Download(ctx context.Context) (io.ReadCloser, error)
- func Run(ctx context.Context, cmds ...Command) error
- type AppInfo
- type AppInfoCommon
- type AppInfoConfig
- type AppInfoConfigLaunch
- type AppInfoConfigLaunchConfig
- type AppInfoDepots
- type AppInfoDepotsBranch
- type AppInfoPrint
- type AppInfoRequest
- type AppUpdate
- type Command
- type CommandError
- type Flags
- type ForceInstallDir
- type ForcePlatformType
- type Login
- type Path
- type PlatformType
- type Prompt
- type WorkshopDownloadItem
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DownloadURL = func() *url.URL { u, err := url.Parse("https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz") if err != nil { panic(err) } return u }() DefaultPlatformType = PlatformTypeLinux )
View Source
var Quit = &q{}
Functions ¶
Types ¶
type AppInfo ¶
type AppInfo struct { Common AppInfoCommon `vdf:"common"` Config AppInfoConfig `vdf:"config"` Depots AppInfoDepots `vdf:"depots"` }
func GetAppInfo ¶
GetAppInfo returns the app info for the given app ID, assuming that steamcmd has previously ran AppInfoPrint for the given app ID.
type AppInfoCommon ¶
type AppInfoCommon struct { Name string `vdf:"name"` Type string `vdf:"type"` Parent int `vdf:"parent"` OSList string `vdf:"oslist"` GameID int `vdf:"gameid"` OSArch string `vdf:"osarch"` Icon string `vdf:"icon"` Logo string `vdf:"logo"` LogoSmall string `vdf:"logo_small"` ClientIcon string `vdf:"clienticon"` }
type AppInfoConfig ¶
type AppInfoConfig struct { Launch map[string]AppInfoConfigLaunch `vdf:"launch"` ContentType string `vdf:"contenttype"` InstallDir string `vdf:"installdir"` }
type AppInfoConfigLaunch ¶
type AppInfoConfigLaunch struct { Executable string `vdf:"executable"` Arguments string `vdf:"arguments"` Type string `vdf:"type"` Config *AppInfoConfigLaunchConfig `vdf:"config"` }
type AppInfoDepots ¶
type AppInfoDepots struct {
Branches map[string]AppInfoDepotsBranch `vdf:"branches"`
}
type AppInfoDepotsBranch ¶
type AppInfoPrint ¶
type AppInfoPrint int
func (AppInfoPrint) Args ¶
func (c AppInfoPrint) Args() ([]string, error)
func (AppInfoPrint) Check ¶
func (c AppInfoPrint) Check(flags *Flags) error
func (AppInfoPrint) Modify ¶
func (c AppInfoPrint) Modify(_ *Flags) error
func (AppInfoPrint) String ¶
func (c AppInfoPrint) String() string
type AppInfoRequest ¶
type AppInfoRequest int
func (AppInfoRequest) Args ¶
func (c AppInfoRequest) Args() ([]string, error)
func (AppInfoRequest) Check ¶
func (c AppInfoRequest) Check(flags *Flags) error
func (AppInfoRequest) Modify ¶
func (c AppInfoRequest) Modify(_ *Flags) error
func (AppInfoRequest) String ¶
func (c AppInfoRequest) String() string
type CommandError ¶
func (*CommandError) Error ¶
func (e *CommandError) Error() string
func (*CommandError) Unwrap ¶
func (e *CommandError) Unwrap() error
type ForceInstallDir ¶
type ForceInstallDir string
func (ForceInstallDir) Args ¶
func (c ForceInstallDir) Args() ([]string, error)
func (ForceInstallDir) Check ¶
func (ForceInstallDir) Check(flags *Flags) error
func (ForceInstallDir) Modify ¶
func (c ForceInstallDir) Modify(_ *Flags) error
func (ForceInstallDir) String ¶
func (c ForceInstallDir) String() string
type ForcePlatformType ¶
type ForcePlatformType PlatformType
func (ForcePlatformType) Args ¶
func (c ForcePlatformType) Args() ([]string, error)
func (ForcePlatformType) Check ¶
func (c ForcePlatformType) Check(_ *Flags) error
func (ForcePlatformType) Modify ¶
func (c ForcePlatformType) Modify(_ *Flags) error
func (ForcePlatformType) String ¶
func (c ForcePlatformType) String() string
type PlatformType ¶
type PlatformType string
var ( PlatformTypeWindows PlatformType = "windows" PlatformTypeLinux PlatformType = "linux" PlatformTypeMacOS PlatformType = "macos" )
func (PlatformType) String ¶
func (t PlatformType) String() string
type WorkshopDownloadItem ¶
func (WorkshopDownloadItem) Args ¶
func (c WorkshopDownloadItem) Args() ([]string, error)
func (WorkshopDownloadItem) Check ¶
func (WorkshopDownloadItem) Check(flags *Flags) error
func (WorkshopDownloadItem) Modify ¶
func (c WorkshopDownloadItem) Modify(_ *Flags) error
func (WorkshopDownloadItem) String ¶
func (c WorkshopDownloadItem) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.