PoshSec / PoshSecFramework

A framework for PowerShell and PoshSec scripts for network management, security, and maintenance.
BSD 3-Clause "New" or "Revised" License
145 stars 23 forks source link

Search up to one to two levels down for psm1 files #25

Closed mwjcomputing closed 6 years ago

mwjcomputing commented 9 years ago

Take a look at https://github.com/mwjcomputing/PoshSec/tree/Development. I moved the module files one level deep to keep the Pester tests out of the distribution.

Can we make this work so it can search the second level down in a module that is hosted on Github? Other PowerShell module writers are doing their module this way. Ping me if you want to chat.

Good-man commented 6 years ago

@mwjcomputing, do you want it to search the root and every folder at the root directory, or just the 2nd level and not the root?

Good-man commented 6 years ago

@mwjcomputing this is what I see when I try to add the modules at the URL above.

image

Good-man commented 6 years ago

@mwjcomputing The URL above (https://github.com/mwjcomputing/PoshSec/tree/Development) contains the branch name in in the URL. PSF allows the user to select the branch. See the screenshot below. If I enter the URL above and select "Development" from the dropdown, it appears to download and install the module correctly. Is there different behavior that you're looking for?

image

Good-man commented 6 years ago

Closing the issue until further information can be provided.