aboutsummaryrefslogtreecommitdiff
path: root/src/install.lua
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-04-20 14:47:58 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-04-20 14:47:58 +0200
commit96e11c169cde65194c1136e6b40c1bbea35c813a (patch)
tree29abfee5f3e8f37a53ae4f674b926f497827d963 /src/install.lua
parent0686b40f979f4607b3fd8cca21c463e98f617666 (diff)
create cli
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