kasy-cli 1.9.1 → 1.9.2

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.
Files changed (2) hide show
  1. package/bin/kasy.js +14 -11
  2. package/package.json +1 -1
package/bin/kasy.js CHANGED
@@ -76,7 +76,10 @@ function createLocalizedHelpConfig(t) {
76
76
  }
77
77
 
78
78
  function localizeSubcommandTerm(term) {
79
- return term.replace(/ \[options\]/g, ` ${t('cli.help.inline.options')}`);
79
+ // Hide " [options]" entirely on the root help — users can run
80
+ // `kasy <command> --help` to see options for a specific command.
81
+ // Subcommand help still shows its own Options section.
82
+ return term.replace(/ \[options\]/g, '');
80
83
  }
81
84
 
82
85
  const localizedUsage = helper.commandUsage(cmd).replace(
@@ -341,13 +344,13 @@ function buildProgram(language) {
341
344
  applyLocalizedHelp(
342
345
  program
343
346
  .command('add')
344
- .argument('[module]', 'Module to add (e.g. sentry, analytics, revenuecat, onboarding, llm_chat, ci...)')
345
- .option('--list', 'List all available modules and their current status')
347
+ .argument('[feature]', 'Feature to add (e.g. sentry, analytics, revenuecat, onboarding, llm_chat, ci...)')
348
+ .option('--list', 'List all available features and their current status')
346
349
  .option('--yes', 'Skip interactive prompts (use placeholder values)')
347
350
  .option('-d, --directory <path>', 'Project folder (default: current directory)', '.')
348
351
  .description(t('cli.command.add.description'))
349
- .action(async (module, options) => {
350
- await runAdd(module, { language, ...options });
352
+ .action(async (feature, options) => {
353
+ await runAdd(feature, { language, ...options });
351
354
  }),
352
355
  t
353
356
  );
@@ -355,12 +358,12 @@ function buildProgram(language) {
355
358
  applyLocalizedHelp(
356
359
  program
357
360
  .command('remove')
358
- .argument('[module]', 'Module to remove (e.g. sentry, analytics, llm_chat, ci...)')
361
+ .argument('[feature]', 'Feature to remove (e.g. sentry, analytics, llm_chat, ci...)')
359
362
  .option('--yes', 'Skip confirmation prompt')
360
363
  .option('-d, --directory <path>', 'Project folder (default: current directory)', '.')
361
364
  .description(t('cli.command.remove.description'))
362
- .action(async (module, options) => {
363
- await runRemove(module, { language, ...options });
365
+ .action(async (feature, options) => {
366
+ await runRemove(feature, { language, ...options });
364
367
  }),
365
368
  t
366
369
  );
@@ -369,14 +372,14 @@ function buildProgram(language) {
369
372
  program
370
373
  .command('update')
371
374
  .argument(
372
- '[module]',
375
+ '[feature]',
373
376
  t('cli.command.update.targetArg')
374
377
  )
375
378
  .option('--yes', 'Skip confirmation prompt')
376
379
  .option('-d, --directory <path>', 'Project folder (default: current directory)', '.')
377
380
  .description(t('cli.command.update.description'))
378
- .action(async (module, options) => {
379
- await runUpdate(module, { language, ...options });
381
+ .action(async (feature, options) => {
382
+ await runUpdate(feature, { language, ...options });
380
383
  }),
381
384
  t
382
385
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kasy-cli",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "CLI for scaffolding production-ready Flutter SaaS apps with Firebase, Supabase, or API REST backends.",
5
5
  "bin": {
6
6
  "kasy": "./bin/kasy.js"