feat: option to specify npx quartz sync message (closes #583)
| | |
| | | default: true, |
| | | describe: "create a git commit for your unsaved changes", |
| | | }, |
| | | message: { |
| | | string: true, |
| | | alias: ["m"], |
| | | describe: "option to override the default Quartz commit message", |
| | | }, |
| | | push: { |
| | | boolean: true, |
| | | default: true, |
| | |
| | | dateStyle: "medium", |
| | | timeStyle: "short", |
| | | }) |
| | | const commitMessage = argv.message ?? `Quartz sync: ${currentTimestamp}` |
| | | spawnSync("git", ["add", "."], { stdio: "inherit" }) |
| | | spawnSync("git", ["commit", "-m", `Quartz sync: ${currentTimestamp}`], { stdio: "inherit" }) |
| | | spawnSync("git", ["commit", "-m", commitMessage], { stdio: "inherit" }) |
| | | |
| | | if (contentStat.isSymbolicLink()) { |
| | | // put symlink back |