mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-25 07:31:42 +00:00
Compare commits
1 Commits
feature/ll
...
dev/duhowe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bc9e7540a |
@@ -33,13 +33,7 @@ Function Mangle-CommitMessage($object) {
|
||||
$s
|
||||
}
|
||||
|
||||
Function Get-Git2GitIgnoresAsExcludes() {
|
||||
$filters = (Get-Content (Join-Path (& git rev-parse --show-toplevel) consolegit2gitfilters.json) | ConvertFrom-Json)
|
||||
$excludes = $filters.ContainsFilters | ? { $_ -Ne "/." } | % { $_ -Replace "^/","" }
|
||||
$excludes += $filters.SuffixFilters | % { "**/*$_"; "*$_" }
|
||||
$excludes += $filters.PrefixFilters | % { "**/$_*"; "$_*" }
|
||||
$excludes | % { ":(top,exclude)$_" }
|
||||
}
|
||||
Import-Module "$PSScriptRoot\OpenConsole.psd1"
|
||||
|
||||
$Excludes = Get-Git2GitIgnoresAsExcludes
|
||||
Write-Verbose "IGNORING: $Excludes"
|
||||
|
||||
81
tools/OpenConsole.psd1
Normal file
81
tools/OpenConsole.psd1
Normal file
@@ -0,0 +1,81 @@
|
||||
#
|
||||
# Module manifest for module 'OpenConsole'
|
||||
#
|
||||
@{
|
||||
|
||||
# Script module or binary module file associated with this manifest.
|
||||
RootModule = '.\OpenConsole.psm1'
|
||||
|
||||
# Version number of this module.
|
||||
ModuleVersion = '0.0.1'
|
||||
|
||||
# Supported PSEditions
|
||||
# CompatiblePSEditions = @()
|
||||
|
||||
# ID used to uniquely identify this module
|
||||
GUID = '54190442-b882-4aea-b8a6-a65f9d56026c'
|
||||
|
||||
# Author of this module
|
||||
Author = 'duhowett'
|
||||
|
||||
# Company or vendor of this module
|
||||
CompanyName = 'Microsoft Corporation'
|
||||
|
||||
# Copyright statement for this module
|
||||
Copyright = '(c) Microsoft Corporation.'
|
||||
|
||||
# Modules that must be imported into the global environment prior to importing this module
|
||||
# RequiredModules = @()
|
||||
|
||||
# Assemblies that must be loaded prior to importing this module
|
||||
# RequiredAssemblies = @()
|
||||
|
||||
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
|
||||
# ScriptsToProcess = @()
|
||||
|
||||
# Type files (.ps1xml) to be loaded when importing this module
|
||||
# TypesToProcess = @()
|
||||
|
||||
# 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 = @()
|
||||
|
||||
CmdletsToExport = @()
|
||||
VariablesToExport = @()
|
||||
AliasesToExport = @()
|
||||
FunctionsToExport = @(
|
||||
'Set-MsbuildDevEnvironment',
|
||||
'Invoke-OpenConsoleTests',
|
||||
'Invoke-OpenConsoleBuild',
|
||||
'Start-OpenConsole',
|
||||
'Debug-OpenConsole',
|
||||
'Invoke-CodeFormat',
|
||||
'Invoke-XamlFormat',
|
||||
'Test-XamlFormat',
|
||||
'Find-OpenConsoleRoot',
|
||||
'Get-Git2GitIgnoresAsExcludes',
|
||||
'New-ConhostIngestionArchive'
|
||||
)
|
||||
|
||||
# DSC resources to export from this module
|
||||
# DscResourcesToExport = @()
|
||||
|
||||
# List of all modules packaged with this module
|
||||
# ModuleList = @()
|
||||
|
||||
# List of all files packaged with this module
|
||||
# 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.
|
||||
PrivateData = @{
|
||||
|
||||
PSData = @{
|
||||
|
||||
} # End of PSData hashtable
|
||||
|
||||
} # End of PrivateData hashtable
|
||||
|
||||
}
|
||||
|
||||
@@ -431,4 +431,22 @@ function Invoke-CodeFormat() {
|
||||
}
|
||||
}
|
||||
|
||||
Export-ModuleMember -Function Set-MsbuildDevEnvironment,Invoke-OpenConsoleTests,Invoke-OpenConsoleBuild,Start-OpenConsole,Debug-OpenConsole,Invoke-CodeFormat,Invoke-XamlFormat,Test-XamlFormat
|
||||
Function Get-Git2GitIgnoresAsExcludes() {
|
||||
$filters = (Get-Content (Join-Path (Find-OpenConsoleRoot) consolegit2gitfilters.json) | ConvertFrom-Json)
|
||||
$excludes = $filters.ContainsFilters | ? { $_ -Ne "/." } | % { $_ -Replace "^/","" }
|
||||
$excludes += $filters.SuffixFilters | % { "**/*$_"; "*$_" }
|
||||
$excludes += $filters.PrefixFilters | % { "**/$_*"; "$_*" }
|
||||
$excludes | % { ":(top,exclude)$_" }
|
||||
}
|
||||
|
||||
Function New-ConhostIngestionArchive() {
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[parameter(Mandatory=$true, Position=0)]
|
||||
[string]$Path
|
||||
)
|
||||
& git archive -o $Path HEAD (Get-Git2GitIgnoresAsExcludes)
|
||||
Get-Item $Path
|
||||
}
|
||||
|
||||
Export-ModuleMember -Function Set-MsbuildDevEnvironment,Invoke-OpenConsoleTests,Invoke-OpenConsoleBuild,Start-OpenConsole,Debug-OpenConsole,Invoke-CodeFormat,Invoke-XamlFormat,Test-XamlFormat,Get-Git2GitIgnoresAsExcludes,New-ConhostIngestionArchive
|
||||
|
||||
Reference in New Issue
Block a user