derived-cli 0.0.55 → 0.0.56
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/bundle.js +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -141,4 +141,4 @@ Available commands:
|
|
|
141
141
|
|
|
142
142
|
Use -f to force re-add.`,"Already Added");return}let s=fu(n,t||{});if(s.length>0&&!e.force){let r=s.length;M(`Block "${n}" has already been added ${r} time${r>1?"s":""} with different input configuration${r>1?"s":""}.
|
|
143
143
|
|
|
144
|
-
Proceeding to add with new input configuration...`,"Different Input Detected")}await Wu(n,e.query,t,e.overwrite)});X.
|
|
144
|
+
Proceeding to add with new input configuration...`,"Different Input Detected")}await Wu(n,e.query,t,e.overwrite)});X.command("search <query>").description("Search block").action(async n=>{await Pn(n)});X.command("init <project-slug>").description("Initialize a project from a template").action(async n=>{Y(`\u{1F680} Initializing project: ${n}`);try{let e=process.cwd(),{isDirectoryEmpty:t,removeGitDirectory:i}=await Promise.resolve().then(()=>(Tu(),Su));t(e)||($("\u274C Error: Current directory is not empty. Please run this command in an empty directory."),process.exit(1));let s=P();s.start("Fetching project details...");let r=await R.fetchProjectBySlug(n);r?.result||(s.stop("\u274C Project not found"),$(`Project with slug '${n}' does not exist.`),process.exit(1));let u=r.result;s.stop(`\u2705 Found project: ${u.name}`),s.start(`Cloning repository from ${u.gitUrl}...`);try{await be(`git clone ${u.gitUrl} .`,{stdio:"pipe",cwd:e}),s.stop("\u2705 Repository cloned successfully")}catch(o){s.stop("\u274C Failed to clone repository"),$(`Git clone failed: ${o.message}`),process.exit(1)}if(i(e),u.setupCommand&&u.setupCommand.trim()){let o=u.setupCommand.split(",").map(a=>a.trim());for(let a of o)if(a){s.start(`Running: ${a}`);try{await be(a,{stdio:"inherit",cwd:e}),s.stop(`\u2705 Completed: ${a}`)}catch(c){s.stop(`\u26A0\uFE0F Warning: Command failed: ${a}`),console.warn(` ${c.message}`)}}}Q(`\u{1F389} Project '${u.name}' setup successfully!`)}catch(e){$(`\u274C An error occurred: ${e.message}`),process.exit(1)}});X.parse();0&&(module.exports={displayFileTree});
|