22 if (_processResult !=
null)
24 return _processResult.ExitCode;
43 if (_processResult !=
null)
45 return _processResult.Output;
49 return Array.Empty<
string>();
61 if (_processResult !=
null)
63 return _processResult.Success;
79 if (_arguments !=
null)
81 return $
"winget {_arguments.ToString()}";
95 return (_processResult ==
null);
99 private readonly ProcessResult? _processResult =
null;
113 _processResult = processResult;
114 _arguments = arguments;
Represents a winget arguments string for different winget actions.
Represents a winget execution result.
bool Success
Gets if the process finished successfully.
string[] Output
Gets the output of the process as a System.String array.
string ExecutedCmd
Gets the cmd that was executed.
bool IsEmpty
Gets if the object is empty.
int ExitCode
Gets the exit code of the process.
Interface for all winget related objects.