Skip to content

Commit

Permalink
chore: add missing packages for cli version of spectre
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Nov 3, 2022
1 parent 5273d49 commit c20e2fe
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,23 @@
"DryIoc",
"Humanizer",
"Newtonsoft.Json",
"Spectre.Console",
"system.Linq.Async",
"Xabe.FFmpeg",
"Xabe.FFMpeg"
],
"semanticCommitType": "fix",
"addLabels": ["enhancement"]
},
{
"matchPackageNames":[
"Spectre.Console",
"Spectre.Console.Analyzers",
"Spectre.Console.Cli"
],
"groupName": "spectre console packages",
"semanticCommitType": "fix",
"addLabels": ["enhancement"]
},
{
"matchSourceUrlPrefixes": [
"https://github.com/nunit/"
Expand Down
4 changes: 4 additions & 0 deletions src/VideoConverter.Core/VideoConverter.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Spectre.Console.Analyzer" Version="0.45.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Xabe.FFMpeg" Version="5.2.0" />
</ItemGroup>
</Project>
6 changes: 6 additions & 0 deletions src/VideoConverter.Core/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"resolved": "4.1.2",
"contentHash": "0TsiZQgeO7w5K1awpZvj4qw0ZUX6xOpCY37xtkgxoZ+7aIpT7H9EvW2BJrJiRoxxtfKkA+LEHmAgl9r4e6rUFg=="
},
"Spectre.Console.Analyzer": {
"type": "Direct",
"requested": "[0.45.0, )",
"resolved": "0.45.0",
"contentHash": "0OiLWW4sSUB3p/eAufk8AV998LxKR1ztquxzGfPKq1EBO1dS44M40kIaQXdwux+vWiVqfHnfDYdo9Lt5OjPshg=="
},
"Xabe.FFmpeg": {
"type": "Direct",
"requested": "[5.2.0, )",
Expand Down
9 changes: 9 additions & 0 deletions src/VideoConverter.IntegrationTests/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,14 @@
"System.Memory": "4.5.5"
}
},
"Spectre.Console.Cli": {
"type": "Transitive",
"resolved": "0.45.0",
"contentHash": "SZcYjwEmmYgmTDqOluWFYtURI9bgRtmx3tSdslHsMU9lKWkev3UHEkzDbOtu4XwY+hCn9NOjBRSDWNafa4fyCQ==",
"dependencies": {
"Spectre.Console": "0.45.0"
}
},
"System.CodeDom": {
"type": "Transitive",
"resolved": "5.0.0",
Expand Down Expand Up @@ -785,6 +793,7 @@
"Humanizer": "[2.14.1, )",
"Newtonsoft.Json": "[13.0.1, )",
"Spectre.Console": "[0.45.0, )",
"Spectre.Console.Cli": "[0.45.0, )",
"VideoConverter.Core": "[1.0.0, )",
"VideoConverter.Storage": "[1.0.0, )",
"Xabe.FFmpeg": "[5.2.0, )",
Expand Down
4 changes: 4 additions & 0 deletions src/VideoConverter.Storage/VideoConverter.Storage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Spectre.Console.Analyzer" Version="0.45.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions src/VideoConverter.Storage/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
"resolved": "4.1.2",
"contentHash": "0TsiZQgeO7w5K1awpZvj4qw0ZUX6xOpCY37xtkgxoZ+7aIpT7H9EvW2BJrJiRoxxtfKkA+LEHmAgl9r4e6rUFg=="
},
"Spectre.Console.Analyzer": {
"type": "Direct",
"requested": "[0.45.0, )",
"resolved": "0.45.0",
"contentHash": "0OiLWW4sSUB3p/eAufk8AV998LxKR1ztquxzGfPKq1EBO1dS44M40kIaQXdwux+vWiVqfHnfDYdo9Lt5OjPshg=="
},
"Microsoft.CSharp": {
"type": "Transitive",
"resolved": "4.0.1",
Expand Down
9 changes: 9 additions & 0 deletions src/VideoConverter.Tests/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,14 @@
"System.Memory": "4.5.5"
}
},
"Spectre.Console.Cli": {
"type": "Transitive",
"resolved": "0.45.0",
"contentHash": "SZcYjwEmmYgmTDqOluWFYtURI9bgRtmx3tSdslHsMU9lKWkev3UHEkzDbOtu4XwY+hCn9NOjBRSDWNafa4fyCQ==",
"dependencies": {
"Spectre.Console": "0.45.0"
}
},
"System.CodeDom": {
"type": "Transitive",
"resolved": "5.0.0",
Expand Down Expand Up @@ -785,6 +793,7 @@
"Humanizer": "[2.14.1, )",
"Newtonsoft.Json": "[13.0.1, )",
"Spectre.Console": "[0.45.0, )",
"Spectre.Console.Cli": "[0.45.0, )",
"VideoConverter.Core": "[1.0.0, )",
"VideoConverter.Storage": "[1.0.0, )",
"Xabe.FFmpeg": "[5.2.0, )",
Expand Down
5 changes: 1 addition & 4 deletions src/VideoConverter/Commands/AddCriteriaCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ private async Task AddOrUpdateCriteriaAsync(Core.Models.EpisodeData episodeData,
{
newCriteria.Episode = episodeData.EpisodeNumber;
newCriteria.NewEpisode = settings.EpisodeNumber.Value;
if (newCriteria.Season is null)
{
newCriteria.Season = episodeData.SeasonNumber;
}
newCriteria.Season ??= episodeData.SeasonNumber;
}

await repository.AddOrUpdateCriteriaAsync(newCriteria).ConfigureAwait(false);
Expand Down
2 changes: 1 addition & 1 deletion src/VideoConverter/Commands/EncodeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public EncodeCommand(QueueRepository queueRepo, ConverterConfiguration config, I

Console.CancelKeyPress += (sender, e) =>
{
Console.WriteLine("Cancelling!!!");
console.WriteLine("Cancelling!!!");
if (e.SpecialKey != ConsoleSpecialKey.ControlC)
{
Expand Down
5 changes: 5 additions & 0 deletions src/VideoConverter/VideoConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Spectre.Console" Version="0.45.0" />
<PackageReference Include="Spectre.Console.Analyzer" Version="0.45.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Spectre.Console.Cli" Version="0.45.0" />
<PackageReference Include="system.Linq.Async" Version="6.0.1" />
<PackageReference Include="Xabe.FFmpeg" Version="5.2.0" />
</ItemGroup>
Expand Down
15 changes: 15 additions & 0 deletions src/VideoConverter/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,21 @@
"System.Memory": "4.5.5"
}
},
"Spectre.Console.Analyzer": {
"type": "Direct",
"requested": "[0.45.0, )",
"resolved": "0.45.0",
"contentHash": "0OiLWW4sSUB3p/eAufk8AV998LxKR1ztquxzGfPKq1EBO1dS44M40kIaQXdwux+vWiVqfHnfDYdo9Lt5OjPshg=="
},
"Spectre.Console.Cli": {
"type": "Direct",
"requested": "[0.45.0, )",
"resolved": "0.45.0",
"contentHash": "SZcYjwEmmYgmTDqOluWFYtURI9bgRtmx3tSdslHsMU9lKWkev3UHEkzDbOtu4XwY+hCn9NOjBRSDWNafa4fyCQ==",
"dependencies": {
"Spectre.Console": "0.45.0"
}
},
"System.Linq.Async": {
"type": "Direct",
"requested": "[6.0.1, )",
Expand Down

0 comments on commit c20e2fe

Please sign in to comment.