File: command.lua

package info (click to toggle)
vifm 0.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,252 kB
  • sloc: ansic: 179,567; sh: 5,445; makefile: 723; perl: 347; python: 76; xml: 26
file content (11 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
local M = {}

function M.greet(info)
    local what = 'world'
    if info.args ~= '' then
        what = info.args
    end
    vifm.sb.info(string.format('Hello, %s!', what))
end

return M