plano-cli 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/plano.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{generate as e,getTemplate as t,promptForContext as a}from"../chunk-RIM3OUHY.js";import{Command as r}from"commander";import{z as o}from"zod";var s=new r;s.name("plano").description("CLI to scaffold files and directories from templates").version("0.0.8"),s.command("generate").description("Generate files or directories from a template").argument("<name>","template name").option("-p, --paths <path...>",'Paths to templates, must be directory named "plano-templates"',[]).action((async(r,s)=>{try{const n=o.string().parse(r),{paths:m}=o.object({paths:o.array(o.string())}).parse(s),p=t({name:n,paths:m}),{context:i,helpers:c={}}=await a({template:p});e({context:i,helpers:c,template:p})}catch(e){e instanceof Error&&console.log(e.message)}})),s.parse();
2
+ import{generate as e,getTemplate as t,promptForContext as a}from"../chunk-RIM3OUHY.js";import{Command as r}from"commander";import{z as o}from"zod";var s=new r;s.name("plano").description("CLI to scaffold files and directories from templates").version("0.0.9","-v, --version"),s.command("generate").description("Generate files or directories from a template").argument("<name>","template name").option("-p, --paths <path...>",'Paths to templates, must be directory named "plano-templates"',[]).action((async(r,s)=>{try{const n=o.string().parse(r),{paths:m}=o.object({paths:o.array(o.string())}).parse(s),p=t({name:n,paths:m}),{context:i,helpers:c={}}=await a({template:p});e({context:i,helpers:c,template:p})}catch(e){e instanceof Error&&console.log(e.message)}})),s.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plano-cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [