@ghatak/slash-ui 1.2.4 → 1.2.5

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/bin/index.js CHANGED
@@ -1,14 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
3
  import { addCommand } from '../src/commands/add.js';
4
+ import { listCommand } from '../src/commands/list.js'; // New import
4
5
  const program = new Command();
5
6
  program
6
7
  .name('slash-ui')
7
8
  .description('CLI for Slash-UI component library')
8
- .version('0.1.0');
9
+ .version('1.2.5'); // Updated version
10
+ // Register the 'add' command
9
11
  program
10
12
  .command('add')
11
13
  .description('Add a component to your project')
12
14
  .argument('<component>', 'the component to add')
13
15
  .action(addCommand);
16
+ // Register the 'list' command
17
+ program
18
+ .command('list')
19
+ .description('List all available components')
20
+ .action(listCommand); // Ensure your list.ts exports this function/command
14
21
  program.parse();