permachine 0.4.1 → 0.5.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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8267,12 +8267,13 @@ async function promptConfirmation(message) {
8267
8267
  }
8268
8268
  async function main() {
8269
8269
  const argv = import_minimist.default(process.argv.slice(2), {
8270
- boolean: ["help", "version", "silent", "legacy", "auto", "with-package-json", "no-gitignore", "verbose"],
8270
+ boolean: ["help", "version", "silent", "legacy", "auto", "with-package-json", "no-gitignore", "verbose", "yes"],
8271
8271
  string: ["debounce"],
8272
8272
  alias: {
8273
8273
  h: "help",
8274
8274
  v: "version",
8275
- s: "silent"
8275
+ s: "silent",
8276
+ y: "yes"
8276
8277
  }
8277
8278
  });
8278
8279
  const command = argv._[0];
@@ -8326,7 +8327,7 @@ async function handleInit(argv) {
8326
8327
  logger.warn(` - ${path7.relative(process.cwd(), file)}`);
8327
8328
  }
8328
8329
  logger.info("");
8329
- const confirmed = await promptConfirmation("Do you want to continue?");
8330
+ const confirmed = argv.yes || await promptConfirmation("Do you want to continue?");
8330
8331
  if (!confirmed) {
8331
8332
  logger.info("Aborted.");
8332
8333
  process.exit(0);
@@ -8394,7 +8395,7 @@ async function handleMerge(argv) {
8394
8395
  logger.warn(` - ${path7.relative(process.cwd(), file)}`);
8395
8396
  }
8396
8397
  logger.info("");
8397
- const confirmed = await promptConfirmation("Do you want to continue?");
8398
+ const confirmed = argv.yes || await promptConfirmation("Do you want to continue?");
8398
8399
  if (!confirmed) {
8399
8400
  logger.info("Aborted.");
8400
8401
  process.exit(0);
@@ -8519,6 +8520,7 @@ OPTIONS:
8519
8520
  --help, -h Show this help message
8520
8521
  --version, -v Show version number
8521
8522
  --silent, -s Suppress all output except errors (for merge command)
8523
+ --yes, -y Skip confirmation prompts (for init/merge commands)
8522
8524
  --legacy Use legacy .git/hooks wrapping (for init command)
8523
8525
  --auto Auto-detect best installation method (for init command)
8524
8526
  --no-gitignore Don't manage .gitignore or git tracking (for init/merge commands)
@@ -8528,6 +8530,7 @@ OPTIONS:
8528
8530
  EXAMPLES:
8529
8531
  permachine init
8530
8532
  permachine merge --silent
8533
+ permachine merge --yes
8531
8534
  permachine info
8532
8535
  permachine uninstall
8533
8536
  permachine watch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permachine",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Automatically merge machine-specific config files with base configs using git hooks",
5
5
  "type": "module",
6
6
  "bin": {