summaryrefslogtreecommitdiff
path: root/examples/extensions/greet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/extensions/greet.lua')
-rw-r--r--examples/extensions/greet.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/extensions/greet.lua b/examples/extensions/greet.lua
index 30a6f12..d74095b 100644
--- a/examples/extensions/greet.lua
+++ b/examples/extensions/greet.lua
@@ -6,6 +6,8 @@
-- writing to stdout). `args` is the trimmed text after the command name;
-- it is an empty string when none was given. The return value is ignored.
+local panto = require("panto")
+
panto.ext.register_command {
name = "greet",
description = "Print a greeting. Optional args name who to greet.",