Used to get the configuration information of xmake global, that is, the value of the parameter option passed in xmake g|global --xxx=val.
::: tip API
global.get(key: <string>)
:::
| Parameter | Description |
|---|---|
| key | Configuration key name |
Similar to config.get, the only difference is that this is obtained from the global configuration.
::: tip API
global.load()
:::
No parameters required for this function.
Similar to global.get, the only difference is that this is loaded from the global configuration.
::: tip API
global.directory()
:::
No parameters required for this function.
The default is the ~/.config directory.
::: tip API
global.dump()
:::
No parameters required for this function.
The output is as follows:
{
clean = true,
ccache = "ccache",
xcode_dir = "/Applications/Xcode.app"
}