Skip to content

Commit

Permalink
Simplify merging of files
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelZ committed Feb 25, 2020
1 parent b5eb126 commit d613c9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 151 deletions.
2 changes: 2 additions & 0 deletions Merge-File.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
56 changes: 1 addition & 55 deletions Source/Classes/_classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
97 changes: 1 addition & 96 deletions Source/formats/_formats.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}

0 comments on commit d613c9a

Please sign in to comment.