Skip to content

Provides wrappers for executing external processes, capturing their stdout, and automatically checking their exit code.

License

Notifications You must be signed in to change notification settings

antiufo/Shaman.ProcessUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shaman.ProcessUtils

Library for working with external processes.

using Shaman.Runtime;

// Arguments are automatically quoted if necessary.
try
{
    ProcessUtils.Run("program", "arg1", "--option", "C:\Some directory\File.dat");
}
catch (ProcessException ex) when ex.ExitCode == 5
{
    // ex.ErrorText is the process' stderr
}

// RunPassThrough: prints stdout and stderr to the the current process stdout and stderr.
// RunFrom/RunPassThroughFrom: sets the current directory for the program.

About

Provides wrappers for executing external processes, capturing their stdout, and automatically checking their exit code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages