Add a new option "--add-stubs-suffix" to add a "-stubs" suffix to each package by long0900 · Pull Request #1 · mlidbom/pythonnet-stub-generator · GitHub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -58,12 +65,13 @@ static int Main(string[] args)
/// </summary>
/// <param name="destPath">Path to save the subs to.</param>
/// <param name="searchPaths">Path to search for referenced assemblies</param>
/// <param name="targetDlls">Target DLLsz</param>
/// <param name="targetDlls">Target DLLs, separated by commas.</param>
static int Run(
DirectoryInfo destPath,
string targetDlls,
DirectoryInfo[]? searchPaths = null,
bool onlyTargetTypes = false
bool onlyTargetTypes = false,
bool addStubSuffix = false
)
{
if (searchPaths != null)
Expand All
@@ -75,21 +83,20 @@ static int Run(
var infos = new List<FileInfo>();
foreach (var pathStr in targetDlls.Split(','))
{
var assemblyPath = new FileInfo(pathStr);
var assemblyPath = new FileInfo(pathStr.Trim());
if (!assemblyPath.Exists)
{
Console.WriteLine($"error: can not find {assemblyPath}");
return -1;
}
infos.Add(assemblyPath);
}
Console.WriteLine($"building stubs...");
try
{
var dest = StaticStubBuilder.BuildAssemblyStubs(destPath, infos.ToArray(), searchPaths, onlyTargetTypes);
var dest = StaticStubBuilder.BuildAssemblyStubs(destPath, infos.ToArray(), searchPaths, onlyTargetTypes, addStubSuffix);
Console.WriteLine($"stubs saved to {dest}");
return 0;
}
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new option "--add-stubs-suffix" to add a "-stubs" suffix to each package #1
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
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Add a new option "--add-stubs-suffix" to add a "-stubs" suffix to each package #1
Filter by extension
Viewed files
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing