Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.98 KB

README.md

File metadata and controls

76 lines (51 loc) · 1.98 KB

ps-modules

Repository with PowerShell modules I've developed over time.

Managing modules

You can manage modules in the repository with module_manage.ps1 script.
It allows to install the module, delete module, or scaffold new module manifest in the repository.
Script automatically detects the CurrentUser/AllUsers scope, depending if it runs elevated.

# install module
./module_manage.ps1 -Module 'do-test'
# clean up previous versions during installation
./module_manage.ps1 -Module 'do-test' -CleanUp
# remove requirements from the manifest file to speed up module loading
./module_manage.ps1 -Module 'do-test' -RemoveRequirements

# delete module
./module_manage.ps1 -Module 'do-test' -Delete

# scaffold module manifest
./module_manage.ps1 -Module 'do-test' -Create

Modules

  • aliases-git

    Module with git functions and aliases.

    ./module_manage.ps1 'aliases-git' -CleanUp
  • aliases-kubectl

    Module with kubectl functions and aliases.

    ./module_manage.ps1 'aliases-kubectl' -CleanUp
  • do-az

    Module intended to streamline work with Microsoft Azure Cloud.
    Required modules to be installed beforehand: do-common, Az.Accounts, Az.ResourceGraph

    ./module_manage.ps1 'do-az' -CleanUp -RemoveRequirements
  • do-common

    Common module, not depending on other modules, working on all systems.
    On Linux, it is recommended to install the module in the AllUsers scope, by running the script as root.

    ./module_manage.ps1 'do-common' -CleanUp
  • do-linux

    Module intended to streamline work on Linux.

    ./module_manage.ps1 -Module 'do-linux' -CleanUp
  • do-win

    Module intended to streamline work on Windows.

    ./module_manage.ps1 -Module 'do-win' -CleanUp