diff --git a/.vscode/launch.json b/.vscode/launch.json index 844db564..8a05b035 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -47,6 +47,22 @@ "console": "internalConsole", "stopAtEntry": false }, + { + "name": "Display Copy Help", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/src/Stars.Console/bin/Debug/net6.0/Stars.dll", + "args": [ + "copy", + "-h" + ], + "cwd": "${workspaceFolder}/src", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, { "name": "Display Plugins", "type": "coreclr", diff --git a/src/Stars.Console/Operations/BaseOperation.cs b/src/Stars.Console/Operations/BaseOperation.cs index 743ed690..dc721e17 100644 --- a/src/Stars.Console/Operations/BaseOperation.cs +++ b/src/Stars.Console/Operations/BaseOperation.cs @@ -17,6 +17,7 @@ namespace Terradue.Stars.Console.Operations { + [HelpOption] internal abstract class BaseOperation { [Option] diff --git a/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs b/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs index a97b7c77..e0f381b7 100644 --- a/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs +++ b/src/Stars.Data/ThirdParty/Publication/GeosquareService.cs @@ -73,7 +73,7 @@ public async Task PublishAsync(IPublicationModel publicationM GeosquarePublicationState state = new GeosquarePublicationState(geosquareModel, client); state.Hash = guid; - await routingService.RouteAsync(route, 4, null, state, ct); + await routingService.RouteAsync(route, publicationModel.Depth, null, state, ct); state.OsdUri = new Uri(client.BaseAddress, string.Format("{0}/cat/{1}/description", geosquareModel.Index, guid.Value)); diff --git a/src/Stars.Tests/S3Tests.cs b/src/Stars.Tests/S3Tests.cs index ec9a7628..911df2d5 100644 --- a/src/Stars.Tests/S3Tests.cs +++ b/src/Stars.Tests/S3Tests.cs @@ -1,19 +1,16 @@ using System; using System.IO; using System.Linq; -using System.Net; using System.Threading; using System.Threading.Tasks; using Amazon.S3.Model; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; using Stac; using Stac.Extensions.File; using Terradue.Stars.Interface; using Terradue.Stars.Services; using Terradue.Stars.Services.Model.Stac; using Terradue.Stars.Services.Resources; -using Terradue.Stars.Services.Router; using Terradue.Stars.Services.Supplier; using Terradue.Stars.Services.Supplier.Carrier; using Terradue.Stars.Services.Supplier.Destination;