diff options
| author | ruki <[email protected]> | 2019-01-02 00:57:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-01-01 23:47:08 +0800 |
| commit | 59c8c59a2983c329118f7839b9949635a85183f5 (patch) | |
| tree | 8828214363911c982c819abc611e11e669b6031e /xmake/core/main.lua | |
| parent | 38e38540325ff07453a324e8049ed575fad8cb8d (diff) | |
add default theme
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index abe233720..66aa9b606 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -31,11 +31,13 @@ local log = require("base/log") local path = require("base/path") local utils = require("base/utils") local option = require("base/option") +local global = require("base/global") local profiler = require("base/profiler") local deprecated = require("base/deprecated") local privilege = require("base/privilege") local task = require("base/task") local colors = require("base/colors") +local theme = require("theme/theme") local project = require("project/project") local history = require("project/history") @@ -207,6 +209,13 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily. profiler:start() end + -- load global configuration + ok, errors = global.load() + if not ok then + utils.error(errors) + return -1 + end + -- show help? if main._show_help() then return 0 |
