aboutsummaryrefslogtreecommitdiff
path: root/manual/plugin_task.md
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2019-06-23 22:33:07 +0800
committerruki <waruqi@gmail.com>2019-06-23 22:33:07 +0800
commit325a6a14da0330cfe1059428edf212b1cfa6716e (patch)
tree728e313e3c292d1589eabe28847c0761b705f885 /manual/plugin_task.md
parenta7d62ad08dae85079662b87879b83761a78d1c7b (diff)
downloadxmake-docs-325a6a14da0330cfe1059428edf212b1cfa6716e.tar.gz
xmake-docs-325a6a14da0330cfe1059428edf212b1cfa6716e.zip
fix task links
Diffstat (limited to 'manual/plugin_task.md')
-rw-r--r--manual/plugin_task.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/manual/plugin_task.md b/manual/plugin_task.md
index 1ac4ebe3..b3bbcde4 100644
--- a/manual/plugin_task.md
+++ b/manual/plugin_task.md
@@ -86,22 +86,22 @@ task("echo")
usage = "xmake echo [options]"
-- Setup menu description
- , description = "Echo the given info!"
+ , description = "Echo the given info!"
-- Set menu options, if there are no options, you can set it to {}
- , options =
+ , options =
{
-- Set k mode as key-only bool parameter
{'b', "bright", "k", nil, "Enable bright." }
- , {'d', "dim", "k", nil, "Enable dim." }
- , {'-', "blink", "k", nil, "Enable blink." }
- , {'r', "reverse", "k", nil, "Reverse color." }
+ , {'d', "dim", "k", nil, "Enable dim." }
+ , {'-', "blink", "k", nil, "Enable blink." }
+ , {'r', "reverse", "k", nil, "Reverse color." }
-- When the menu is displayed, a blank line
- , {}
+ , {}
-- Set kv as the key-value parameter and set the default value: black
- , {'c', "color", "kv", "black", "Set the output color."
+ , {'c', "color", "kv", "black", "Set the output color."
, " - red"
, " - blue"
, " - yellow"
@@ -112,8 +112,8 @@ task("echo")
-- Set `vs` as a value multivalued parameter and a `v` single value type
-- generally placed last, used to get a list of variable parameters
- , {}
- , {nil, "contents", "vs", nil, "The info contents." }
+ , {}
+ , {nil, "contents", "vs", nil, "The info contents." }
}
}
```
@@ -266,7 +266,7 @@ function main(...)
end
```
-It's a simple script file with the main function of `main`. You can import various extension modules via [import](#import) to implement complex functions, such as:
+It's a simple script file with the main function of `main`. You can import various extension modules via [import](/manual/builtin_modules?id=import) to implement complex functions, such as:
```lua
-- Import parameter option module
@@ -280,7 +280,7 @@ function main(...)
end
```
-You can also create multiple custom module files in the current directory and use them after importing via [import](#import), for example:
+You can also create multiple custom module files in the current directory and use them after importing via [import](/manual/builtin_modules?id=import), for example:
```
Projectdir
@@ -313,7 +313,7 @@ function main(...)
end
```
-For more modules, see: [Built-in Module](#Built-in Module) and [Extension Module](Extension Module)
+For more modules, see: [Builtin Module](/manual/builtin_modules) and [Extension Module](/manual/extension_modules)
Among them, the parameter in `main(...)` is specified by `task.run`, for example: