summaryrefslogtreecommitdiff
path: root/yazi-enter.yazi
diff options
context:
space:
mode:
Diffstat (limited to 'yazi-enter.yazi')
-rw-r--r--yazi-enter.yazi/main.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/yazi-enter.yazi/main.lua b/yazi-enter.yazi/main.lua
index c900bc2..6765576 100644
--- a/yazi-enter.yazi/main.lua
+++ b/yazi-enter.yazi/main.lua
@@ -1,5 +1,13 @@
--- @since 26.9.1
+local function parse_mode(value)
+ if value == "directory" or value == "file" or value == "either" then
+ return value
+ end
+
+ error("yazi-enter: mode must be directory, file, or either", 0)
+end
+
local commit = ya.sync(function()
return 0
end)