-
Notifications
You must be signed in to change notification settings - Fork 531
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
Rename projectDirectory to appDirectory in AddPythonApp #7169
base: main
Are you sure you want to change the base?
Conversation
@dotnet-policy-service agree |
src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a few comments to update
@@ -17,7 +17,7 @@ public static class PythonAppResourceBuilderExtensions | |||
/// </summary> | |||
/// <param name="builder">The <see cref="IDistributedApplicationBuilder"/> to add the resource to.</param> | |||
/// <param name="name">The name of the resource.</param> | |||
/// <param name="projectDirectory">The path to the directory containing the python app files.</param> | |||
/// <param name="appDirectory">The path to the directory containing the python app files.</param> | |||
/// <param name="scriptPath">The path to the script relative to the project directory to run.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still says project directory but I think it's referring to the python app directory?
@@ -53,25 +53,25 @@ public static class PythonAppResourceBuilderExtensions | |||
/// var builder = DistributedApplication.CreateBuilder(args); | |||
/// | |||
/// builder.AddPythonApp("python-project", "PythonProject", "main.py"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// builder.AddPythonApp("python-project", "PythonProject", "main.py"); | |
/// builder.AddPythonApp("python-project", "PythonApp", "main.py"); |
@@ -102,44 +102,44 @@ public static IResourceBuilder<PythonAppResource> AddPythonApp( | |||
/// var builder = DistributedApplication.CreateBuilder(args); | |||
/// | |||
/// builder.AddPythonApp("python-project", "PythonProject", "main.py"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// builder.AddPythonApp("python-project", "PythonProject", "main.py"); | |
/// builder.AddPythonApp("python-app", "PythonApp", "main.py"); |
Description
Renames the projectDirectory parameter to appDirectory in AddPythonApp.
Fixes #6242
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):