Provides a wrapper around handling a commandline properly.
More...
|
| | Commandline (string command, params string[] args) |
| | Wraps a command and arguments.
|
| |
| override string | ToString () |
| | Produces the full commandline for the provided command and args.
|
| |
|
| static Commandline | Parse (string commandline) |
| | Parse a commandline into the command and args components.
|
| |
| static implicit | operator string (Commandline o) |
| | Implicitly cast a Commandline instance to a string.
|
| |
| static implicit | operator Commandline (string s) |
| | Implicitly cast a commandline string to a Commandline instance.
|
| |
|
|
string | Command [get] |
| | The base command (program, batch file, etc) for this commandline.
|
| |
|
string[] | Args [get] |
| | The arguments passed to this command.
|
| |
Provides a wrapper around handling a commandline properly.
◆ Commandline()
| PeanutButter.Utils.Commandline.Commandline |
( |
string |
command, |
|
|
params string[] |
args |
|
) |
| |
Wraps a command and arguments.
- Parameters
-
◆ operator Commandline()
| static implicit PeanutButter.Utils.Commandline.operator Commandline |
( |
string |
s | ) |
|
|
static |
Implicitly cast a commandline string to a Commandline instance.
- Parameters
-
- Returns
◆ operator string()
| static implicit PeanutButter.Utils.Commandline.operator string |
( |
Commandline |
o | ) |
|
|
static |
Implicitly cast a Commandline instance to a string.
- Parameters
-
- Returns
◆ Parse()
| static Commandline PeanutButter.Utils.Commandline.Parse |
( |
string |
commandline | ) |
|
|
static |
Parse a commandline into the command and args components.
- Parameters
-
- Returns
◆ ToString()
| override string PeanutButter.Utils.Commandline.ToString |
( |
| ) |
|
Produces the full commandline for the provided command and args.
- Returns
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/Commandline.cs