Skip to content

iricigor/InstallModuleFromGit

Repository files navigation

Install Git Module

:bowtie: This PowerShell module will be help you to easily instal PowerShell modules directly from Azure DevOps (aka VSTS) or GitHub. All you need to know is a URL of the git repository and the module will take care of everything else.

Prerequisites

  • git - Git must be installed and available on path. If you don't have it, you can get it for example from git-scm.com.

Installation

from PowerShell gallery

💨 (not yet available)

clone GitHub repository

git clone https://github.com/iricigor/InstallGitModule Import-Module ./InstallGitModule/InstallGitModule.psd1 # and this is the last time you will be doing it like this # after you install this module you can do it like this Install-GitModule https://github.com/iricigor/InstallGitModule

Examples

# Check for module existence and its version C:> Get-GitModule 'https://github.com/iricigor/FIFA2018' -Verbose # Download and import module in one line C:> (Install-GitModule 'https://github.com/iricigor/psaptgetupdate').Name | Import-Module

Commands

Get-GitModule

Checks for module existence and returns its version. More info here.

Install-GitModule

Installs PowerShell module to user's default install folder. More info here.

Tests

😏 So far the module have very very basic testing, but it is doing that against two platforms - Linux and Windows. Tests results are available on Tests tab (example here).

Windows build status Build Status

Linux build status Build Status

Click on images to see details about latest build runs.

Similar PowerShell modules

📣 dfinke/InstallModuleFromGitHub