-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Feature Request] Subfolders #129
Comments
Never thought about this but that is so smart, simply love it. Feel free to PR a switch parameter. Bonus points if you can throw in a unit test to make sure that the "default" sidebar behavior does not break. |
@bravo-kernel Thanks for the tip. Personally don't think it's relevant for Pester due to DSL-type functions, but I fully support as optional feature for other modules 👏 @homotechsual Did you use a 2 or greater cmdlet threshold per group? Does it make sense to make it configurable in the feature? Personally I'd probably group all to please my OCD 😄 |
I had it configurable in my "quick and dirty" setup and would probably keep it as such. |
I'm currently trying to work out how much work it might be to have it a bit more open ended to allow for grouping by something other than "verb". I've been thinking about the benefits potentially of grouping by "entity" but I'm not sure how I can easily "parse" that. I suppose the simplest option might be to group the same way as the source tree so that's my current exploration angle. |
The above is probably a pipe dream as we don't really have that information but it's fun to think about :-) |
@homotechsual if you want to give this a shot it would be great. Making the default non-discriminatory (and thus not 2+) would be my preference as suggested by @fflaten. Once the basics are in we can take it from there.
|
@fflaten I have never seen or touched a DSL-type function but those would be
|
Yeah, domain-specific language. Basically specialized keywords unique to Pester, like the main building blocks |
A few suggestions, though it might belong in a separate issue and/or follow-up PR:
Scenario: Might consider this for Pester v6 to group many If this is too edge case I'm fine with post-processing the sidebar-file, but worth suggesting while this has an active PR 🙂 |
@fflaten feel free to implement this (as a separate PR). Not being lazy but the feature is still very valid but think it will require some (more) advanced PowerShell skills to get it done right. |
I have a few complex PS modules with 20-60 cmdlets, for the sake of clarity and discoverability we tend to group these by verb. Since discovering this module (phenomenal work btw!) I've added the ability to group cmdlets by verb in the resulting documentation as well as reflecting appropriately in the resulting sidebar with category pages. Would this be a useful addition to PR?
The text was updated successfully, but these errors were encountered: