From d613c9a74850e4697a8abdd26198ee467bd512e1 Mon Sep 17 00:00:00 2001 From: Michel Zehnder Date: Tue, 25 Feb 2020 17:04:05 +0100 Subject: [PATCH] Simplify merging of files --- Merge-File.ps1 | 2 + Source/Classes/_classes.json | 56 +-------------------- Source/formats/_formats.json | 97 +----------------------------------- 3 files changed, 4 insertions(+), 151 deletions(-) diff --git a/Merge-File.ps1 b/Merge-File.ps1 index 3e4cd94c9..f2d751cda 100644 --- a/Merge-File.ps1 +++ b/Merge-File.ps1 @@ -58,6 +58,8 @@ PS C:\> Merge-File -InputFile .\Source\Classes\classes.json } } + $files = $files | select-object -Unique # We don't worry about case sensitivity, because for Linux to work it needs to be cased correctly anyways + # This makes sure the file is there and empty. # If the file already exisit it will be overwritten. $null = New-Item -ItemType file -Path $output -Force diff --git a/Source/Classes/_classes.json b/Source/Classes/_classes.json index 00421be5e..db07f4956 100644 --- a/Source/Classes/_classes.json +++ b/Source/Classes/_classes.json @@ -2,62 +2,8 @@ "outputFile": "vsteam.classes.ps1", "fileType": "classes", "files": [ - "VSTeamVersions.ps1", - "VSTeamProjectCache.ps1", - "VSTeamProcessCache.ps1", "VSTeamDirectory.ps1", "VSTeamLeaf.ps1", - "VSTeamPools.ps1", - "VSTeamInstallState.ps1", - "VSTeamExtensions.ps1", - "VSTeamFeeds.ps1", - "VSTeamAgent.ps1", - "VSTeamTask.ps1", - "VSTeamAttempt.ps1", - "VSTeamUserEntitlement.ps1", - "VSTeamPool.ps1", - "VSTeamQueue.ps1", - "VSTeamEnvironment.ps1", - "VSTeamRelease.ps1", - "VSTeamReleases.ps1", - "VSTeamBuild.ps1", - "VSTeamBuildDefinitions.ps1", - "VSTeamBuilds.ps1", - "VSTeamQueues.ps1", - "VSTeamRepositories.ps1", - "VSTeamTeams.ps1", - "VSTeamProject.ps1", - "VSTeamGitRepository.ps1", - "VSTeamBuildDefinitionProcessPhaseStep.ps1", - "VSTeamBuildDefinitionProcessPhase.ps1", - "VSTeamBuildDefinitionProcess.ps1", - "VSTeamBuildDefinition.ps1", - "VSTeamExtension.ps1", - "VSTeamFeed.ps1", - "VSTeamUsers.ps1", - "VSTeamGroups.ps1", - "VSTeamPermissions.ps1", - "VSTeamProcess.ps1", - "VSTeamRef.ps1", - "VSTeamTeam.ps1", - "VSTeamAccount.ps1", - "VSTeamGitRepositoryPermissions.ps1", - "VSTeamIdentityPermissions.ps1", - "VSTeamProjectPermissions.ps1", - "VSTeamWorkItemAreaPermissions.ps1", - "VSTeamWorkItemIterationPermissions.ps1", - "VSTeamGroup.ps1", - "VSTeamDescriptor.ps1", - "VSTeamSecurityNamespace.ps1", - "VSTeamAccessControlEntry.ps1", - "VSTeamAccessControlList.ps1", - "VSTeamUser.ps1", - "VSTeamClassificationNode.ps1", - "VSTeamJobRequest.ps1", - "VSTeamReleaseDefinition.ps1", - "VSTeamReleaseDefinitions.ps1", - "VSTeamPermissionInheritance.ps1", - "VSTeamGitCommitRef.ps1", - "VSTeamGitUserDate.ps1" + "./*.ps1" ] } \ No newline at end of file diff --git a/Source/formats/_formats.json b/Source/formats/_formats.json index 0a26e9a2d..9cd65634f 100644 --- a/Source/formats/_formats.json +++ b/Source/formats/_formats.json @@ -2,101 +2,6 @@ "outputFile": "vsteam.format.ps1xml", "fileType": "formats", "files": [ - "Team.Provider.JobRequest.TableView.ps1xml", - "Team.Approval.Pending.TableView.ps1xml", - "Team.Approval.Approved.TableView.ps1xml", - "Team.Approval.Rejected.TableView.ps1xml", - "Team.AccessControlEntry.TableView.ps1xml", - "Team.AccessControlEntry.ListView.ps1xml", - "Team.AccessControlList.TableView.ps1xml", - "Team.AccessControlList.ListView.ps1xml", - "Team.Build.TableView.ps1xml", - "Team.Build.WideView.ps1xml", - "Team.Build.ListView.ps1xml", - "Team.Build.Artifact.TableView.ps1xml", - "Team.Build.Artifact.WideView.ps1xml", - "Team.Build.Artifact.ListView.ps1xml", - "Team.Build.Artifact.Resource.TableView.ps1xml", - "Team.Build.Artifact.Resource.WideView.ps1xml", - "Team.Build.Artifact.Resource.ListView.ps1xml", - "Team.ClassificationNode.TableView.ps1xml", - "Team.ClassificationNode.ListView.ps1xml", - "Team.Descriptor.TableView.ps1xml", - "Team.Descriptor.ListView.ps1xml", - "Team.Group.TableView.ps1xml", - "Team.Group.ListView.ps1xml", - "Team.PolicyType.TableView.ps1xml", - "Team.Profile.TableView.ps1xml", - "Team.SecurityNamespace.TableView.ps1xml", - "Team.SecurityNamespace.ListView.ps1xml", - "Team.ServiceEndpointType.TableView.ps1xml", - "Team.ServiceEndpointType.ListView.ps1xml", - "Team.ServiceEndpoint.TableView.ps1xml", - "Team.ServiceEndpoint.ListView.ps1xml", - "Team.Option.TableView.ps1xml", - "Team.Option.Versions.TableView.ps1xml", - "Team.User2.TableView.ps1xml", - "Team.User2.ListView.ps1xml", - "Team.UserEntitlement.TableView.ps1xml", - "Team.UserEntitlement.WideView.ps1xml", - "Team.UserEntitlement.ListView.ps1xml", - "Team.VariableGroup.TableView.ps1xml", - "Team.VariableGroup.ListView.ps1xml", - "Team.Provider.Feed.TableView.ps1xml", - "Team.Feed.TableView.ps1xml", - "Team.Provider.GitRef.TableView.ps1xml", - "Team.GitRef.TableView.ps1xml", - "Team.Agent.TableView.ps1xml", - "Team.Provider.Agent.TableView.ps1xml", - "Team.Provider.Team.TableView.ps1xml", - "Team.Team.TableView.ps1xml", - "Team.Team.ListView.ps1xml", - "Team.Provider.Release.TableView.ps1xml", - "Team.ReleaseDefinition.TableView.ps1xml", - "Team.Provider.ReleaseDefinition.TableView.ps1xml", - "Team.Environment.Status.TableView.ps1xml", - "Team.Build.TableView.ps1xml", - "Team.Build.ListView.ps1xml", - "Team.BuildDefinition.TableView.ps1xml", - "Team.Provider.BuildDefinition.TableView.ps1xml", - "Team.BuildDefinition.ListView.ps1xml", - "Team.BuildDefinitionYamlProcess.TableView.ps1xml", - "Team.Provider.BuildDefinitionYamlProcess.TableView.ps1xml", - "Team.BuildDefinitionPhasedProcess.TableView.ps1xml", - "Team.BuildDefinitionProcess.ListView.ps1xml", - "Team.BuildDefinitionProcessPhase.TableView.ps1xml", - "Team.Provider.BuildDefinitionProcessPhase.TableView.ps1xml", - "Team.BuildDefinitionProcessPhase.ListView.ps1xml", - "Team.BuildDefinitionProcessPhaseStep.TableView.ps1xml", - "Team.Provider.BuildDefinitionProcessPhaseStep.TableView.ps1xml", - "Team.BuildDefinitionProcessPhaseStep.ListView.ps1xml", - "Team.Release.TableView.ps1xml", - "Team.Repository.TableView.ps1xml", - "Team.Provider.Repository.TableView.ps1xml", - "Team.Repository.ListView.ps1xml", - "Team.Provider.Project.TableView.ps1xml", - "Team.Project.TableView.ps1xml", - "Team.Project.ListView.ps1xml", - "Team.Process.TableView.ps1xml", - "Team.Process.ListView.ps1xml", - "Team.Pool.TableView.ps1xml", - "Team.Provider.Queue.TableView.ps1xml", - "Team.Provider.Pool.TableView.ps1xml", - "Team.Extension.TableView.ps1xml", - "Team.Provider.Extension.TableView.ps1xml", - "Team.PSDrive.Default.TableView.ps1xml", - "Team.PSDrive.Default.ListView.ps1xml", - "Team.PSDrive.Leaf.Default.TableView.ps1xml", - "Team.WorkItemType.TableView.ps1xml", - "Team.WorkItemType.ListView.ps1xml", - "Team.Wiql.TableView.ps1xml", - "Team.Wiql.ListView.ps1xml", - "Team.WorkItem.TableView.ps1xml", - "Team.WorkItem.ListView.ps1xml", - "Team.WorkItemDeleted.TableView.ps1xml", - "Team.WorkItemDeleted.ListView.ps1xml", - "Team.JobRequest.TableView.ps1xml", - "Team.GitCommitRef.TableView.ps1xml", - "Team.GitUserDate.TableView.ps1xml" + "*.ps1xml" ] } \ No newline at end of file