Class CmdHelper
Inheritance
System.Object
CmdHelper
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public static class CmdHelper : object
Fields
SuccessfulExitCode
Declaration
public static int SuccessfulExitCode
Field Value
| Type |
Description |
| System.Int32 |
|
Methods
GetArguments(String)
Declaration
public static string GetArguments(string command)
Parameters
| Type |
Name |
Description |
| System.String |
command |
|
Returns
| Type |
Description |
| System.String |
|
GetFileName()
Declaration
public static string GetFileName()
Returns
| Type |
Description |
| System.String |
|
Run(String, String)
Declaration
public static void Run(string file, string arguments)
Parameters
| Type |
Name |
Description |
| System.String |
file |
|
| System.String |
arguments |
|
RunCmd(String)
Declaration
public static int RunCmd(string command)
Parameters
| Type |
Name |
Description |
| System.String |
command |
|
Returns
| Type |
Description |
| System.Int32 |
|
RunCmdAndGetOutput(String)
Declaration
public static string RunCmdAndGetOutput(string command)
Parameters
| Type |
Name |
Description |
| System.String |
command |
|
Returns
| Type |
Description |
| System.String |
|
RunCmdAndGetOutput(String, out Boolean)
Declaration
public static string RunCmdAndGetOutput(string command, out bool isExitCodeSuccessful)
Parameters
| Type |
Name |
Description |
| System.String |
command |
|
| System.Boolean |
isExitCodeSuccessful |
|
Returns
| Type |
Description |
| System.String |
|
RunCmdAndGetOutput(String, out Int32)
Declaration
public static string RunCmdAndGetOutput(string command, out int exitCode)
Parameters
| Type |
Name |
Description |
| System.String |
command |
|
| System.Int32 |
exitCode |
|
Returns
| Type |
Description |
| System.String |
|