public static ICommandProcedure OpenFastbootCommand(this ICommandProcedureManager cpm, IDevice?device, params string[] args) { var deviceArg = device != null ? $"-s {device.SerialNumber}" : ""; return(cpm.OpenCommand("fastboot.exe", $"{deviceArg}", string.Join(" ", args))); }
public HestExecutor(ICommandProcedureManager procedureManager) { if (procedureManager is null) { throw new ArgumentNullException(nameof(procedureManager)); } this.procedureManager = procedureManager; }
public static ICommandProcedure OpenCMDCommand(this ICommandProcedureManager cpm, params string[] args) { #if CROSS_PLATFORM string fileName = System.Environment.OSVersion.Platform == System.PlatformID.Win32NT ? "cmd.exe" : "/bin/bash"; #else string fileName = "cmd.exe"; #endif return(cpm.OpenCommand(fileName, "/c", string.Join(" ", args))); }
public static ICommandProcedure OpenShellCommand(this ICommandProcedureManager cpm, IDevice device, params string[] sh) { return(cpm.OpenADBCommand(device, $"shell {sh}")); }
public static ICommandProcedure OpenCMDCommand(this ICommandProcedureManager cpm, params string[] args) { return(cpm.OpenCommand("cmd.exe", "/c", string.Join(" ", args))); }