Learn R Programming

brickster (version 0.2.6)

read_databrickscfg: Reads Databricks CLI Config

Description

Reads Databricks CLI Config

Usage

read_databrickscfg(key = c("token", "host", "wsid"), profile = NULL)

Value

named list of values associated with profile

Arguments

key

The value to fetch from profile. One of token, host, or wsid

profile

Character, the name of the profile to retrieve values

Details

Reads .databrickscfg file and retrieves the values associated to a given profile. Brickster searches for the config file in the user's home directory by default. To see where this is you can run Sys.getenv("HOME") on unix-like operating systems, or, Sys.getenv("USERPROFILE") on windows. An alternate location will be used if the environment variable DATABRICKS_CONFIG_FILE is set.