@choiceform/extension-cli
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -49,2 +49,9 @@ #!/usr/bin/env node | ||
program | ||
.command('clean') | ||
.description('Clean up the local template cache.') | ||
.action(() => { | ||
core.cleanCache(); | ||
}); | ||
program.arguments('<command>').action((cmd) => { | ||
@@ -51,0 +58,0 @@ program.outputHelp(); |
@@ -52,2 +52,6 @@ import { execSync } from 'node:child_process'; | ||
export async function cleanCache() { | ||
await fs.rmSync(cacheDir, { force: true, recursive: true }); | ||
} | ||
export async function install(name) { | ||
@@ -54,0 +58,0 @@ await execSync('npm install --loglevel=error', { |
{ | ||
"$schema": "https://json.schemastore.org/package", | ||
"name": "@choiceform/extension-cli", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Command Line Interface for Choiceform Extension.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
5802
153