This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 163
Support creating project variables #515
Labels
enhancement
New feature or request
Comments
I would favor this being a subcommand under
|
Makes sense but we are trying to avoid nested commands.
Putting it under glab ci variable [set | get | list | remove] instead of simple glab variable [set | get | list | remove] |
If we are just avoiding nesting commands as a whole then that makes sense. |
Is there a reason to avoid nested commands? |
We are trying to have a format that will be predictable for users even if they don't read the docs. Users hardly read docs anyway |
profclems
added a commit
that referenced
this issue
Jan 10, 2021
Adds `variable set` command for creating GitLab environment variables. Variable can be created for a project or a group specified with `--group | -g` flag. Resolves #515
profclems
added a commit
that referenced
this issue
Jan 10, 2021
Adds `variable set` command for creating GitLab environment variables. Variable can be created for a project or a group specified with `--group | -g` flag. Resolves #515
profclems
added a commit
that referenced
this issue
Jan 10, 2021
Adds `variable set` command for creating GitLab environment variables. Variable can be created for a project or a group specified with `--group | -g` flag. Resolves #515
profclems
added a commit
that referenced
this issue
Jan 10, 2021
Adds `variable set` command for creating GitLab environment variables. Variable can be created for a project or a group specified with `--group | -g` flag. Resolves #515
profclems
added a commit
that referenced
this issue
Jan 10, 2021
Adds `variable set` command for creating GitLab environment variables. Variable can be created for a project or a group specified with `--group | -g` flag. Resolves #515
Open
4 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the feature or problem you'd like to solve
It will be nice if
glab
provides support for creating project variables. Currently, users have to switch over to the GitLab web UI to create project variablesPropose a Solution
Provide
variable create
command for creating project variables.Should have the format
glab variable create <key> <value> [flag]
.new
andset
can be used as aliases for create soglab variable set <key> <value> [flag]
andglab variable set <key> <value> [flag]
will be accepted.Below are the parameters required by the endpoint and the suggested flags for
glab
-t | --type
-p | --protected
-m | --masked
-s | --scope
Additional context
https://docs.gitlab.com/ee/api/project_level_variables.html#create-variable
The text was updated successfully, but these errors were encountered: