summaryrefslogtreecommitdiff
path: root/xmake/scripts/action/_man.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-19 16:23:29 +0800
committerruki <[email protected]>2015-06-19 16:23:29 +0800
commit1d041891edec9d99a1922fd7f4a4770b60412cfd (patch)
treee5cd7add5e44a873544859a6e17afc998ec75d54 /xmake/scripts/action/_man.lua
parentc93c5254d82a621a116dbbcd0130b08f5e33ce2b (diff)
rebuild the main implementation
Diffstat (limited to 'xmake/scripts/action/_man.lua')
-rw-r--r--xmake/scripts/action/_man.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/scripts/action/_man.lua b/xmake/scripts/action/_man.lua
index 25fa3340a..ea48704d5 100644
--- a/xmake/scripts/action/_man.lua
+++ b/xmake/scripts/action/_man.lua
@@ -28,6 +28,19 @@ local utils = require("base/utils")
local config = require("base/config")
local platform = require("platform/platform")
+-- need access to the given file?
+function _man.need(name)
+
+ -- check
+ assert(name)
+
+ -- the accessors
+ local accessors = { config = true, global = true, project = true }
+
+ -- need it?
+ return accessors[name]
+end
+
-- done the given config
function _man.done()