Title: Adding option for parsing public Functions and Aliases · Issue #50 · PoshCode/ModuleBuilder · GitHub
Open Graph Title: Adding option for parsing public Functions and Aliases · Issue #50 · PoshCode/ModuleBuilder
X Title: Adding option for parsing public Functions and Aliases · Issue #50 · PoshCode/ModuleBuilder
Description: First off, I realize that this might be a highly opinionated subject and don't mind to be told that I'm wrong. Today, Build-Module reads the BaseName of files matching $PublicFilter to populate FunctionsToExport, which works well enough ...
Open Graph Description: First off, I realize that this might be a highly opinionated subject and don't mind to be told that I'm wrong. Today, Build-Module reads the BaseName of files matching $PublicFilter to populate Fun...
X Description: First off, I realize that this might be a highly opinionated subject and don't mind to be told that I'm wrong. Today, Build-Module reads the BaseName of files matching $PublicFilter to popu...
Opengraph URL: https://github.com/PoshCode/ModuleBuilder/issues/50
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Adding option for parsing public Functions and Aliases","articleBody":"First off, I realize that this might be a highly opinionated subject and don't mind to be told that I'm wrong.\r\n\r\nToday, Build-Module reads the BaseName of files matching $PublicFilter to populate FunctionsToExport, which works well enough unless you misspell a file or want to have more than one function per file. My main problem is that this method won't export any aliases for commands, meaning that I will have to either set AliasesToExport to '*' which is bad for performance or parse my aliases in a post-build task.\r\n\r\nI would like to add an option to use AST to get all functions and aliases from all files matching $PublicFilter. This option could be enabled by a swich parameter $UseAST. I am aware that this will have an impact on build performance. In my testing on a small module with ~20 public functions, this change takes the build time from ~0.35seconds to ~0.7 seconds, an impact I'm gladly willing to endure to get Aliases parsed for me.\r\n\r\nWould a PR for this be of interest?\r\n","author":{"url":"https://github.com/SimonWahlin","@type":"Person","name":"SimonWahlin"},"datePublished":"2019-01-20T17:35:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/50/ModuleBuilder/issues/50"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ba585b1-3e16-9338-d0ac-cc9413ddb90a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C3C:2F9FBB:47C2119:61FE788:697CAADC |
| html-safe-nonce | c20619b1c16880d875921c72fd4aff5bf35d6528ae4a13788c52227163c7862b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzNDOjJGOUZCQjo0N0MyMTE5OjYxRkU3ODg6Njk3Q0FBREMiLCJ2aXNpdG9yX2lkIjoiNDA2MzMzMzI1NjE2MDY1MTk5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b7f8b3d0860d846bd7f1f76e4b3c950e643774b39c4516af72b115620d5b4220 |
| hovercard-subject-tag | issue:401120206 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PoshCode/ModuleBuilder/50/issue_layout |
| twitter:image | https://opengraph.githubassets.com/13fb4d144a55757e8c73864b6f89429934646886e3cd81aea23a9ea0725e3680/PoshCode/ModuleBuilder/issues/50 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/13fb4d144a55757e8c73864b6f89429934646886e3cd81aea23a9ea0725e3680/PoshCode/ModuleBuilder/issues/50 |
| og:image:alt | First off, I realize that this might be a highly opinionated subject and don't mind to be told that I'm wrong. Today, Build-Module reads the BaseName of files matching $PublicFilter to populate Fun... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SimonWahlin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5bdfd06d077d4bc79a8063f7549f208cda3158f1322903029653dc97f57b937a |
| turbo-cache-control | no-preview |
| go-import | github.com/PoshCode/ModuleBuilder git https://github.com/PoshCode/ModuleBuilder.git |
| octolytics-dimension-user_id | 5641451 |
| octolytics-dimension-user_login | PoshCode |
| octolytics-dimension-repository_id | 18412121 |
| octolytics-dimension-repository_nwo | PoshCode/ModuleBuilder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18412121 |
| octolytics-dimension-repository_network_root_nwo | PoshCode/ModuleBuilder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8a309d88087f59ff1a2f2cd9e9e79ed01a7b84e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width