Skip to content

Commit

Permalink
Add launch configuration for displaying copy help
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Mar 8, 2024
1 parent 0b1093f commit 54e7561
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/Stars.Console/Operations/BaseOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

namespace Terradue.Stars.Console.Operations
{
[HelpOption]
internal abstract class BaseOperation
{
[Option]
Expand Down
2 changes: 1 addition & 1 deletion src/Stars.Data/ThirdParty/Publication/GeosquareService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task<IPublicationState> 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));
Expand Down
3 changes: 0 additions & 3 deletions src/Stars.Tests/S3Tests.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 54e7561

Please sign in to comment.