Skip to content

gucu112/Gucu112.Powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Gucu112.Powershell

TODO: Add description (here and on github)

Import module locally

Start from root project directory and use this command:

Import-Module '.\modules\Gucu112.Powershell.Utility\Gucu112.Powershell.Utility.psd1'

You can also load single function:

Import-Module '.\modules\Gucu112.Powershell.PackageManagement\src\New-ModuleScaffold.psm1'

Remember to remove module if you want to reload it:

Remove-Module 'Gucu112.Powershell.Utility' # module name (psd1)
Remove-Module 'New-ModuleScaffold' # function name (psm1)

Create test module

Run following command from root project directory:

New-ModuleScaffold -Path '.\modules\Gucu112.Powershell.Test'

Create test functions in the module

Run following command from root project directory:

New-ModuleFunction -Name @('New-Thing', 'Get-Thing') -Path '.\modules\Gucu112.Powershell.Test'

Tests

Implementation

Ideas

  • Functions
    • Package Management
      • New-ScriptFileInfo
      • Install-Script
    • Utility
      • Get-Path -Absolute
      • ConvertFrom-SecureStringUsingBSTR
      • Write-Message
      • Get-WindowsIdentity -LoggedIn, -Anonymous
  • Enhancements
    • Replace $_ with $PSItem for better visibility
    • Change string to ErrorRecord for error collection list
    • Try System.Collections.ArrayList as error collection list
  • Documentation & Unit Tests
    • Get-WindowsIdentity
    • Test-WindowsIdentity

Research

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published