Table of Contents

Class WindowsPlatform

Namespace
FishMMO.Installer
Assembly
FishMMO-Installer.dll

Windows platform implementation.

public class WindowsPlatform : IPlatform
Inheritance
WindowsPlatform
Implements
Inherited Members

Properties

IsLinux

True when running on Linux.

public bool IsLinux { get; }

Property Value

bool

IsWindows

True when running on Windows.

public bool IsWindows { get; }

Property Value

bool

Methods

GetShellCommand()

Returns the OS-appropriate shell executable and argument prefix. Windows: (cmd.exe, /c). Linux: fish if available, else bash.

public (string shell, string argPrefix) GetShellCommand()

Returns

(string shell, string argPrefix)

IsCommandAvailableAsync(string)

Checks whether a given executable is available on PATH.

public Task<bool> IsCommandAvailableAsync(string command)

Parameters

command string

Returns

Task<bool>