diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-02-25 17:45:41 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-02-25 17:45:41 -0500 |
commit | 0184c63073eceb98f05a0857e2bc3aff8012ae75 (patch) | |
tree | 98805c749b1ed1065c32ea5c18f4a88474883512 | |
parent | 82b10a02fa22ac3458804758df7e44d428f01e21 (diff) | |
download | lite-xl-plugin-manager-0184c63073eceb98f05a0857e2bc3aff8012ae75.tar.gz lite-xl-plugin-manager-0184c63073eceb98f05a0857e2bc3aff8012ae75.zip |
Added test, and clarified things.
-rw-r--r-- | src/lpm.lua | 1 | ||||
-rw-r--r-- | t/run.lua | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index d745cc0..8ebe33f 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2193,6 +2193,7 @@ Flags have the following effects: --mask Excludes the specified addons from the operation you're performing. Can break packages if you exclude dependencies that the addon actually requires to run. + Ensure you know what you're doing if you use this. The following flags are useful when listing plugins, or generating the plugin table. Putting a ! infront of the string will invert the filter. Multiple @@ -120,6 +120,12 @@ local tests = { assert_not_exists(userdir .. "/plugins/lsp") assert_not_exists(userdir .. "/plugins/lintplus") assert_not_exists(userdir .. "/plugins/settings.lua") + end, + ["12_masking"] = function() + lpm("install lsp --mask settings") + assert_exists(userdir .. "/plugins/lsp") + assert_exists(userdir .. "/plugins/lintplus") + assert_not_exists(userdir .. "/plugins/settings.lua") end } |