Reorganized, simplified, and standardized PowerShell modules.

This commit is contained in:
Brandon Thetford
2024-04-26 21:23:04 -07:00
parent b9b68ba1a6
commit 8cb748e452
12 changed files with 650 additions and 148 deletions

View File

@@ -1,15 +1,20 @@
#
# Module manifest for module 'Terminal.Gui.PowerShell'
#
# Generated by: Brandon Thetford (GitHub @dodexahedron)
#
# Generated on: 4/19/2024
#
<#
.SYNOPSIS
All-inclusive module that includes all other Terminal.Gui.PowerShell.* modules.
.DESCRIPTION
All-inclusive module that includes all other Terminal.Gui.PowerShell.* modules.
.EXAMPLE
Import-Module ./Terminal.Gui.PowerShell.psd1
.NOTES
Doc comments on manifest files are not supported by Get-Help as of PowerShell 7.4.2.
This comment block is purely informational and will not interfere with module loading.
#>
@{
# Script module or binary module file associated with this manifest.
RootModule = 'Terminal.Gui.PowerShell.psm1'
# No root module because this is a manifest module.
RootModule = ''
# Version number of this module.
ModuleVersion = '1.0.0'
@@ -44,10 +49,23 @@ PowerShellHostVersion = '7.4.0'
# Processor architecture (None, MSIL, X86, IA64, Amd64, Arm, or an empty string) required by this module. One value only.
# Set to AMD64 here because development on Terminal.Gui isn't really supported on anything else.
# Has nothing to do with runtime use of Terminal.Gui.
ProcessorArchitecture = 'AMD64'
ProcessorArchitecture = 'Amd64'
# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @('Microsoft.PowerShell.Utility','Microsoft.PowerShell.Management','PSReadLine')
RequiredModules = @(
@{
ModuleName='Microsoft.PowerShell.Utility'
ModuleVersion='7.0.0'
},
@{
ModuleName='Microsoft.PowerShell.Management'
ModuleVersion='7.0.0'
},
@{
ModuleName='PSReadLine'
ModuleVersion='2.3.4'
}
)
# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
@@ -61,26 +79,32 @@ RequiredModules = @('Microsoft.PowerShell.Utility','Microsoft.PowerShell.Managem
# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
NestedModules = @('./Terminal.Gui.PowerShell.Analyzers.psd1')
# Modules to import as nested modules of this module.
# This module is just a shortcut that loads all of our modules.
NestedModules = @('./Terminal.Gui.PowerShell.Core.psd1', './Terminal.Gui.PowerShell.Analyzers.psd1', './Terminal.Gui.PowerShell.Git.psd1', './Terminal.Gui.PowerShell.Build.psd1')
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = @('Build-Analyzers','Close-Solution','Open-Solution','Reset-PowerShellEnvironment','Set-PowerShellEnvironment')
#FunctionsToExport = @('*')
# Functions to export from this module.
# Not filtered, so exports all functions exported by all nested modules.
FunctionsToExport = '*'
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
# Cmdlets to export from this module.
# We don't have any, so empty array.
CmdletsToExport = @()
# Variables to export from this module
# Variables to export from this module.
# We explicitly control scope of variables, so empty array.
VariablesToExport = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
# Aliases to export from this module.
# None defined at this time.
AliasesToExport = @()
# List of all modules packaged with this module
# This is informational ONLY, so it's just blank right now.
# ModuleList = @()
# List of all files packaged with this module
# This is informational ONLY, so it's just blank right now.
# FileList = @()
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.