Skip to content

Adding support for Installing Scripts from a repository.#134

Open
TechDufus wants to merge 5 commits into
PowerShellOrg:mainfrom
TechDufus:master
Open

Adding support for Installing Scripts from a repository.#134
TechDufus wants to merge 5 commits into
PowerShellOrg:mainfrom
TechDufus:master

Conversation

@TechDufus
Copy link
Copy Markdown

@TechDufus TechDufus commented Nov 12, 2021

This PR adds support for installing scripts from a repository.

This operates almost exactly the same way that the DependencyType PSGalleryModle does.

This adds a new PSDependMap that calls the PSDepend\PSGalleryScript.ps1 file.

An example requirements.psd1 file would look like this

@{
    PSDependOptions = @{
        Target     = 'CurrentUser'
        DependencyType = 'PSGalleryScript'
    }

    'pwshfetch-test-1' = 'latest'
}

Which would be the same as running

Install-Script pwshfetch-test-1 -Scope CurrentUser

@github-actions
Copy link
Copy Markdown

This PR has had no activity for 60 days. It will be closed in 30 days unless there is new activity or a maintainer removes the stale label.

@github-actions github-actions Bot added the status: stale No activity, candidate for closing label May 15, 2026
@HeyItsGilbert HeyItsGilbert added enhancement and removed status: stale No activity, candidate for closing labels May 15, 2026
@HeyItsGilbert
Copy link
Copy Markdown
Member

I think this would be interesting to implement, but we may want to wait until the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants