diff options
| author | ruki <[email protected]> | 2020-06-02 00:53:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-01 23:20:38 +0800 |
| commit | 1c11bcdcccf8cf183d9840b56bd003890f0df66b (patch) | |
| tree | 8f2d49a1cca3a737bf5568afd94537d1c1b35552 /xmake/plugins/show/lists | |
| parent | c9c6aec399bbf0e069f2e5ca2c6596bfb0b80e83 (diff) | |
show target
Diffstat (limited to 'xmake/plugins/show/lists')
| -rw-r--r-- | xmake/plugins/show/lists/packages.lua | 30 | ||||
| -rw-r--r-- | xmake/plugins/show/lists/themes.lua | 28 |
2 files changed, 58 insertions, 0 deletions
diff --git a/xmake/plugins/show/lists/packages.lua b/xmake/plugins/show/lists/packages.lua new file mode 100644 index 000000000..fe1e00d4e --- /dev/null +++ b/xmake/plugins/show/lists/packages.lua @@ -0,0 +1,30 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015-2020, TBOOX Open Source Group. +-- +-- @author ruki +-- @file packages.lua +-- + +-- imports +import("core.project.config") +import("require.list", {rootdir = path.join(os.programdir(), "actions"), alias = "show_packages"}) +import(".showlist") + +-- show all packages +function main() + config.load() + show_packages() +end diff --git a/xmake/plugins/show/lists/themes.lua b/xmake/plugins/show/lists/themes.lua new file mode 100644 index 000000000..85030e048 --- /dev/null +++ b/xmake/plugins/show/lists/themes.lua @@ -0,0 +1,28 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015-2020, TBOOX Open Source Group. +-- +-- @author ruki +-- @file themes.lua +-- + +-- imports +import("core.theme.theme") +import(".showlist") + +-- show all themes +function main() + showlist(theme.names()) +end |
