diff options
-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 } |