Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Define custom GitLab-related object types using ps1xml files #182

Open
it-praktyk opened this issue Jun 17, 2018 · 1 comment
Open

Define custom GitLab-related object types using ps1xml files #182

it-praktyk opened this issue Jun 17, 2018 · 1 comment

Comments

@it-praktyk
Copy link
Collaborator

it-praktyk commented Jun 17, 2018

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
Copy link
Collaborator Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant