Closed CaseyMacPherson closed 3 years ago
Right now, I have a personal machine that I use to dev against gitlab.com and a work machine that I use to dev against a private installation. But it would be nice to be able to switch profiles rather than machines :)
After a little more consideration I'd like to change 2 items
ActiveSite
to DefaultSite
Set-GitlabSystem
to Set-GitlabDefaultSystem
Resolved by #13
What is the feeling about introducing a persistent configuration file for individuals that have multiple gitlab systems.
possibly using
~/.gitlabcli/config.yml
Associated commands that should be created to facilitate
Add-GitlabSystem -Name "gitlab.mygitlabinstance" -ApiToken "8fhs63"
Remove-GitlabSystem -Name "gitlab.mygitlabinstance"
Set-GitlabSystem -Name "gitlab.mygitlabinstance"
The one concern is that this requires an external package
powershell-yaml
. If that's a concern, thenJSON
format will work as well. I've included both examples belowExample configurations
YAML
JSON
Cli Output
YAML
JSON