Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --print-tool-path CLI arguments to simplify IDE debug configuration #1456

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ggaller
Copy link

@ggaller ggaller commented Mar 16, 2023

The main purpose of this argument is to print to the console the path to the executable file that is used when configuring the debug inside IDE.
It respects IDE requirements, so for Visual Studio and Visual Studio Code it return path to .exe file for other path to .dll file.

For example on MacOS it return for VSCode:

% dotnet-lambda-test-tool-6.0 --print-tool-path vscode
AWS .NET Core 6.0 Mock Lambda Test Tool (0.12.3)
/Users/someuser/.dotnet/tools/dotnet-lambda-test-tool-6.0

and for Rider

% dotnet-lambda-test-tool-6.0 --print-tool-path other 
AWS .NET Core 6.0 Mock Lambda Test Tool (0.12.3)
/Users/someuser/.dotnet/tools/.store/amazon.lambda.testtool-6.0/0.12.3/amazon.lambda.testtool-6.0/0.12.3/tools/net6.0/any/Amazon.Lambda.TestTool.BlazorTester.dll

Also tested on Windows.

Changes:

  1. Added new cli argument --print-tool-path;
  2. Added a method to use GetToolPath, which returns the path to the executable file, taking into account the requirements of the IDE

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashishdhingra ashishdhingra added feature-request A feature should be added or improved. module/lambda-test-tool p3 This is a minor priority issue queued labels Sep 1, 2023
@ashishdhingra ashishdhingra self-requested a review May 31, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. module/lambda-test-tool p3 This is a minor priority issue queued
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants