@garyr/pt-cli 0.39.1 → 0.40.0

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/src/index.ts CHANGED
@@ -7,6 +7,7 @@ import { fileURLToPath } from 'url';
7
7
 
8
8
  // Command imports
9
9
  import { learn } from './commands/learnCommand.js';
10
+ import { update } from './commands/updateCommand.js';
10
11
  import { init } from './commands/initCommand.js';
11
12
  import { configCommand } from './commands/configCommand.js';
12
13
  import { ignoreCommand } from './commands/ignoreCommand.js';
@@ -59,9 +60,10 @@ program
59
60
  .option('--ignore <patterns>', 'Folder patterns to ignore (comma-separated)')
60
61
  .option('-y, --yes', 'Automatically confirm prompts')
61
62
  .option('--desc <description>', 'Template description (skip prompt)')
63
+ .option('--no-diff', 'Disable additive mode, show full list')
62
64
  .action(async (templateName: string, sourcePath: string | undefined, options) => {
63
65
  try {
64
- await learn(sourcePath || '.', templateName, options);
66
+ await update(sourcePath || '.', templateName, options);
65
67
  } catch (err: any) {
66
68
  console.error(chalk.red(`Error: ${err.message || err}`));
67
69
  process.exit(1);