Compare commits
45 changed files with 49 additions and 70 deletions
|
|
@ -5,7 +5,7 @@ indent_style = tab
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
tab_width = 4
|
tab_width = 4
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = false
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,4 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="System.CommandLine" PrivateAssets="compile" />
|
<PackageReference Include="System.CommandLine" PrivateAssets="compile" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
</Project>
|
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,4 @@ internal sealed class Output : IDisposable
|
||||||
Stderr.Dispose();
|
Stderr.Dispose();
|
||||||
Stdin.Dispose();
|
Stdin.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -23,4 +23,4 @@ internal static class OutputTargetExtensions
|
||||||
yield return output.Stderr;
|
yield return output.Stderr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -49,4 +49,4 @@ public static class Program
|
||||||
cts.Cancel();
|
cts.Cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -28,4 +28,4 @@ internal sealed class EchoCommand : Command
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -43,4 +43,4 @@ internal sealed class EchoStdinCommand : Command
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -31,4 +31,4 @@ internal sealed class EnvironmentCommand : Command
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -20,4 +20,4 @@ internal sealed class ExitCommand : Command
|
||||||
await output.Stderr.WriteLineAsync($"Exit code set to {code}");
|
await output.Stderr.WriteLineAsync($"Exit code set to {code}");
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -43,4 +43,4 @@ internal sealed class GenerateBlobCommand : Command
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -44,4 +44,4 @@ internal sealed class GenerateClobCommand : Command
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -42,4 +42,4 @@ internal sealed class LengthCommand : Command
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -34,4 +34,4 @@ internal sealed class SleepCommand : Command
|
||||||
await output.Stdout.FlushAsync(CancellationToken.None);
|
await output.Stdout.FlushAsync(CancellationToken.None);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -24,4 +24,4 @@ internal sealed class WorkingDirectoryCommand : Command
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -178,4 +178,4 @@ internal sealed class CancellationTests
|
||||||
await Assert.That(stdout.ToString()).Contains("Done.");
|
await Assert.That(stdout.ToString()).Contains("Done.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -270,4 +270,4 @@ internal sealed class CommandTests
|
||||||
await Assert.That(cmd.StandardErrorPipe).IsNotEqualTo(pipeTarget);
|
await Assert.That(cmd.StandardErrorPipe).IsNotEqualTo(pipeTarget);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -136,4 +136,4 @@ internal sealed class ExecuteTests
|
||||||
await Assert.That(lines).Contains("keep");
|
await Assert.That(lines).Contains("keep");
|
||||||
await Assert.That(lines).Contains("overwritten");
|
await Assert.That(lines).Contains("overwritten");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -78,4 +78,4 @@ internal sealed class LineBreakTests
|
||||||
// Assert
|
// Assert
|
||||||
await Assert.That(stdOutLines).IsEquivalentTo(["Foo", "", "Bar", "", "Baz"]);
|
await Assert.That(stdOutLines).IsEquivalentTo(["Foo", "", "Bar", "", "Baz"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -47,4 +47,4 @@ internal sealed class PathResolutionTests
|
||||||
await Assert.That(result.StandardOutput.Trim()).IsEqualTo("hi");
|
await Assert.That(result.StandardOutput.Trim()).IsEqualTo("hi");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -533,4 +533,4 @@ internal sealed class PipingTests
|
||||||
await Assert.That(stream3.ToArray()).IsEquivalentTo(stream4.ToArray());
|
await Assert.That(stream3.ToArray()).IsEquivalentTo(stream4.ToArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue