Module-Test/01.create-module-folder.ps1

Write-Host "Starting 01.create-module-folder.ps1"

Write-Verbose "Creating new directory fun-new-test-module"
New-Item "fun-new-test-module" -ItemType Directory -Force

Write-Verbose "Changing location to fun-new-test-module"
Set-Location fun-new-test-module

Initialize-Psm -y -WhatIf
Initialize-Psm -y -Verbose

Add-PsmFunction "Ping-Something" -WhatIf
Add-PsmFunction "Ping-Something" -Verbose
Add-PsmFunction "Ping-SomethingElse" -WhatIf
Add-PsmFunction "Ping-SomethingElse" -Verbose
Add-PsmInternalFunction "Ping-SomethingInternal" -WhatIf
Add-PsmInternalFunction "Ping-SomethingInternal" -Verbose

Add-PsmDependency "PSScriptAnalyzer" -Whatif
Add-PsmDependency "PSScriptAnalyzer" -Verbose

Write-PsmManifest -WhatIf
Write-PsmManifest -Verbose

Write-Verbose "Workspace: "
Get-ChildItem

Test-ModuleManifest -Path .\fun-new-test-module.psd1

Write-Verbose "Changing location to original location"
Set-Location ..