jrbeverly / pwsh-from-github

Experimenting with using GitHub to host a powershell library

Home Page:https://jrbeverly.github.io/pwsh-from-github/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Powershell Library on GitHub

Summary

A powershell library that is installed from GitHub, rather than from Powershellgallery.

Usage

Downloading from GitHub:

# Enable installing from github
Install-Module -Name InstallModuleFromGitHub

# Install the module
Install-ModuleFromGitHub -GitHubRepo jrbeverly/pwsh-from-github

# Perform Actions
Write-Hello -Name "World"
Write-World -Message "LFG"

Notes

Experimenting with using InstallModuleFromGitHub, instead of using Powershell gallery.

I have noticed that this requires all of the scripts be at the root of the repository, rather than using a folder structure like so:

> lib/
    > Namespace1/
        > Something1-1.ps1
        > Something1-2.ps1
    > Namespace2/
        > Something2-2.ps1
    > Main.ps1

About

Experimenting with using GitHub to host a powershell library

https://jrbeverly.github.io/pwsh-from-github/

License:MIT License


Languages

Language:PowerShell 94.2%Language:Dockerfile 5.8%