aboutsummaryrefslogtreecommitdiff
path: root/src/install.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/install.lua')
-rw-r--r--src/install.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/install.lua b/src/install.lua
new file mode 100644
index 0000000..46b1d7f
--- /dev/null
+++ b/src/install.lua
@@ -0,0 +1,14 @@
+return function()
+ local args = require('arg') {
+ strict = true,
+ { name = "path" },
+ {
+ name = "name",
+ description = "template name (default: name of the directory)",
+ kind = "property",
+ required = false,
+ }
+ }
+
+ manager.install(Path:new(args.path), args.name)
+end