Feature: Update existing variables
Created by: bradym
Describe the feature or problem you'd like to solve The gitlab API allows for updating existing CI variables, but this has not yet been implemented in glab.
Propose a Solution
Given how similar the set and update api endpoints are, I think it would make sense to add an update flag to the set
command that would call new UpdateGroupVariable
or UpdateProjectVariable
functions.
Then you'd update a variable like this:
glab variable set VAR_NAME newValue --update
glab variable set VAR_NAME newValue --update --group myGroup
@profclems what do you think? I'd like your thoughts on this before starting work on this one.