env_var {circle} | R Documentation |
Interact with Environment Variable(s) on Circle CI
Description
Add, get or set Circle CI environment variable(s) for a repo on Circle CI.
Usage
get_env_vars(
name = NULL,
repo = github_info()$name,
user = github_info()$owner$login,
vcs_type = "gh",
api_version = "v2"
)
set_env_var(
var,
repo = github_info()$name,
user = github_info()$owner$login,
vcs_type = "gh",
api_version = "v2",
quiet = FALSE
)
delete_env_var(
var,
repo = github_info()$name,
user = github_info()$owner$login,
vcs_type = "gh",
api_version = "v2",
quiet = FALSE
)
Arguments
name |
|
repo |
|
user |
|
vcs_type |
|
api_version |
|
var |
|
quiet |
|
Value
An object of class circle_api
with the following elements
-
content
(queried content) -
path
(API request) -
response
(HTTP response information)
Examples
## Not run:
# get env var
get_env_vars()
# set env var
set_env_var(var = list("foo" = "123"))
# delete env var
delete_env_var("foo")
## End(Not run)