diff options
Diffstat (limited to 'xmake/plugins/pack/xpack_component.lua')
| -rw-r--r-- | xmake/plugins/pack/xpack_component.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/plugins/pack/xpack_component.lua b/xmake/plugins/pack/xpack_component.lua index 62e8a1efe..bb274d08a 100644 --- a/xmake/plugins/pack/xpack_component.lua +++ b/xmake/plugins/pack/xpack_component.lua @@ -60,6 +60,11 @@ function xpack_component:extraconf(name, item, key) end end +-- get the component title +function xpack_component:title() + return self:get("title") or self:name() +end + -- get the component description function xpack_component:description() return self:get("description") |
