PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.Commandline Class Reference

Provides a wrapper around handling a commandline properly. More...

Public Member Functions

 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 Public Member Functions

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.
 

Properties

string Command [get]
 The base command (program, batch file, etc) for this commandline.
 
string[] Args [get]
 The arguments passed to this command.
 

Detailed Description

Provides a wrapper around handling a commandline properly.

Constructor & Destructor Documentation

◆ Commandline()

PeanutButter.Utils.Commandline.Commandline ( string  command,
params string[]  args 
)

Wraps a command and arguments.

Parameters
command
args

Member Function Documentation

◆ operator Commandline()

static implicit PeanutButter.Utils.Commandline.operator Commandline ( string  s)
static

Implicitly cast a commandline string to a Commandline instance.

Parameters
s
Returns

◆ operator string()

static implicit PeanutButter.Utils.Commandline.operator string ( Commandline  o)
static

Implicitly cast a Commandline instance to a string.

Parameters
o
Returns

◆ Parse()

static Commandline PeanutButter.Utils.Commandline.Parse ( string  commandline)
static

Parse a commandline into the command and args components.

Parameters
commandline
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: