From 0184c63073eceb98f05a0857e2bc3aff8012ae75 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 25 Feb 2024 17:45:41 -0500 Subject: Added test, and clarified things. --- src/lpm.lua | 1 + t/run.lua | 6 ++++++ 2 files changed, 7 insertions(+) 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 diff --git a/t/run.lua b/t/run.lua index 6b25d50..a58bb12 100644 --- a/t/run.lua +++ b/t/run.lua @@ -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 } -- cgit v1.2.3