Generated by DocFX

Class OS

This class implements OS actions such as Execution

Inheritance
System.Object
OS
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dotnet.Shell.Logic.Execution
Assembly: dotnet-shell-lib.dll
Syntax
public class OS

Methods

| Improve this Doc View Source

Exec(String, Object, Object)

Executes the specified cmdline.

Declaration
public static ProcessEx Exec(string cmdline, object shellObj = null, object redirectionObj = null)
Parameters
Type Name Description
System.String cmdline

The cmdline.

System.Object shellObj

The shell object.

System.Object redirectionObj

The redirection object.

Returns
Type Description
ProcessEx

Process

| Improve this Doc View Source

GetOSHistoryAsync()

Gets the OS command history.

Declaration
public static async Task<IEnumerable<HistoryItem>> GetOSHistoryAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<HistoryItem>>

History

| Improve this Doc View Source

WriteHistoryAsync(IEnumerable<HistoryItem>)

Writes the history asynchronous to the configured history file

Declaration
public static async Task WriteHistoryAsync(IEnumerable<HistoryItem> history)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<HistoryItem> history

The history.

Returns
Type Description
System.Threading.Tasks.Task