From 94d5beeb1bcfb0da1105a999e9a26d1ccb8f49d0 Mon Sep 17 00:00:00 2001 From: francesco Date: Fri, 29 Nov 2024 19:04:02 +0100 Subject: [PATCH] Introducing idea --- index.js | 17 ----------------- .../commands/{hello => }/generate/index.test.ts | 0 2 files changed, 17 deletions(-) delete mode 100644 index.js rename test/commands/{hello => }/generate/index.test.ts (100%) diff --git a/index.js b/index.js deleted file mode 100644 index 05186b4..0000000 --- a/index.js +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env node -const yargs = require('yargs'); -const chalk = require('chalk'); - -// Configurazione CLI con Yargs -yargs - .scriptName('nestarch') - .usage('$0 [options]') - .command(require('./src/commands/generate')) - .command(require('./src/commands/help')) - .demandCommand(1, chalk.red('Devi specificare un comando!')) - .help() - .alias('help', 'h') - .version() - .alias('version', 'v') - .epilogue('NestArch: Analizza i tuoi progetti NestJS e genera diagrammi UML.') - .parse(); \ No newline at end of file diff --git a/test/commands/hello/generate/index.test.ts b/test/commands/generate/index.test.ts similarity index 100% rename from test/commands/hello/generate/index.test.ts rename to test/commands/generate/index.test.ts