ngetchell / PSGitLab

An interface for administering GitLab from the PowerShell command line.
MIT License
72 stars 42 forks source link

Support for Environment Variables #142

Closed ngetchell closed 6 years ago

ngetchell commented 6 years ago

Scenario: Manipulating Gitlab from inside a ci/cd environment.

$env:PSGitLabDomain = http://domain.com
$env:PSGitLabUsername = user
$env:PSGitLabPassword = passwd

Implementation: Have importconfig check the env before reaching to the file for configuration information.

This would have the side benefit of allowing for easy testing without messing with your production settings file.

ngetchell commented 6 years ago

Closed by https://github.com/ngetchell/PSGitLab/pull/143