PSGitLab icon indicating copy to clipboard operation
PSGitLab copied to clipboard

Define custom GitLab-related object types using ps1xml files

Open it-praktyk opened this issue 6 years ago • 1 comments

Currently, custom GitLab-related object types are defined dynamically under retrieving data from PSGitLab

The line of code responsible for that is the line 81 of the file Private/QueryGitLabAPI.ps1.

This way of defining types is described e.g. in the blog post Custom objects and PSTypeName by @MikeShepard.

By defining GitLab-related types in the file ps1xml as described in About Types.ps1xml) we will achieve

  • better readability what a type contains
  • possibility to add nested objects (?) with types of them

it-praktyk avatar Jun 17 '18 03:06 it-praktyk

https://twitter.com/ITpraktyk/status/1008195620845256704

it-praktyk avatar Jun 17 '18 03:06 it-praktyk