Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Build : NukeBuild

[OctoVersion(BranchMember = nameof(BranchName),
AutoDetectBranchMember = nameof(AutoDetectBranch), Framework = "net8.0")]
public OctoVersionInfo OctoVersionInfo;
public OctoVersionInfo OctoVersionInfo;

AbsolutePath SourceDirectory => RootDirectory / "source";
AbsolutePath ArtifactsDirectory => RootDirectory / "artifacts";
Expand Down
2 changes: 1 addition & 1 deletion source/CommandLine/ShellCompletion/CommandSuggester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static IEnumerable<string> SuggestCommandsFor(
.Take(2)
.Except(new[] { exeName, exeNameWithoutExtension, CompleteCommand.Name }, StringComparer.OrdinalIgnoreCase)
.Union(words.Skip(2))
.Where(word => string.IsNullOrWhiteSpace(word) == false)
.Where(word => !string.IsNullOrWhiteSpace(word))
.ToArray();

var numberOfArgs = words.Length;
Expand Down
4 changes: 2 additions & 2 deletions source/Tests/Commands/CompleteCommandFixture.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Shouldly;
using NSubstitute;
using NUnit.Framework;
using Octopus.CommandLine;
using Octopus.CommandLine.Commands;
using Serilog;
using Shouldly;

namespace Tests.Commands;

Expand Down Expand Up @@ -90,7 +90,7 @@ public async Task ShouldReturnAllSubCommandsWhenEmptyArguments()
.ShouldSatisfyAllConditions(
actual => actual.ShouldContain("help"),
actual => actual.ShouldContain("test")
);
);
}

[Test]
Expand Down
4 changes: 2 additions & 2 deletions source/Tests/Commands/HelpCommandFixture.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using System.IO;
using Shouldly;
using NSubstitute;
using NUnit.Framework;
using Octopus.CommandLine;
using Octopus.CommandLine.Commands;
using Serilog;
using Shouldly;
using Tests.Helpers;

namespace Tests.Commands;
Expand Down Expand Up @@ -49,7 +49,7 @@ public void ShouldPrintGeneralHelpWhenNoArgsGiven()
actual => actual.ShouldMatch(@"Usage: (dotnet|testhost.*|ReSharperTestRunner64) <command> \[<options>\]"),
actual => actual.ShouldContain("Where <command> is one of:"),
actual => actual.ShouldContain("create-foo")
);
);
}

[Test]
Expand Down