Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Nov 22, 2023
1 parent 62e25bb commit c6d2d1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CliWrap/CommandResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,16 @@ public CommandResult(int exitCode, DateTimeOffset startTime, DateTimeOffset exit
}
}

// This stuff is only needed by CliWrap.Magic, but we can't implement operators for this type in another assembly
public partial class CommandResult
{
/// <summary>
/// Converts the result to an integer value that corresponds to the <see cref="ExitCode" /> property.
/// </summary>
// This is only needed by CliWrap.Magic, but we can't implement this operator in another assembly
public static implicit operator int(CommandResult result) => result.ExitCode;

/// <summary>
/// Converts the result to a boolean value that corresponds to the <see cref="IsSuccess" /> property.
/// </summary>
// This is only needed by CliWrap.Magic, but we can't implement this operator in another assembly
public static implicit operator bool(CommandResult result) => result.IsSuccess;
}

0 comments on commit c6d2d1c

Please sign in to comment.