pnote 0.4.3 → 0.4.4
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/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2439,7 +2439,7 @@ var updateCommand = new Command10("update").description("Check for updates and u
|
|
|
2439
2439
|
if (!res.ok) throw new Error(`Registry returned ${res.status}`);
|
|
2440
2440
|
const data = await res.json();
|
|
2441
2441
|
const latest = data.version;
|
|
2442
|
-
const current = "0.4.
|
|
2442
|
+
const current = "0.4.4";
|
|
2443
2443
|
if (!isOlderVersion2(current, latest)) {
|
|
2444
2444
|
console.log(green("\u2713") + ` Already on the latest version (${bold("v" + current)})`);
|
|
2445
2445
|
return;
|
|
@@ -2486,7 +2486,7 @@ var schemaCommand = new Command11("schema").description("Output full command sch
|
|
|
2486
2486
|
const root = cmd.parent ?? cmd;
|
|
2487
2487
|
const schema = {
|
|
2488
2488
|
name: root.name(),
|
|
2489
|
-
version: "0.4.
|
|
2489
|
+
version: "0.4.4",
|
|
2490
2490
|
description: root.description(),
|
|
2491
2491
|
globalOptions: root.options.map(mapOption),
|
|
2492
2492
|
commands: root.commands.map(mapCommand)
|
|
@@ -2496,10 +2496,10 @@ var schemaCommand = new Command11("schema").description("Output full command sch
|
|
|
2496
2496
|
|
|
2497
2497
|
// src/index.ts
|
|
2498
2498
|
var program = new Command12();
|
|
2499
|
-
program.name("pnote").description("pnote - The PromptNote CLI").version("0.4.
|
|
2499
|
+
program.name("pnote").description("pnote - The PromptNote CLI").version("0.4.4", "-V, --version", "Show version number").option("--json", "Output as JSON (for scripting)").option("--no-color", "Disable colored output").option("--plain", "Force plain text output (no formatting)").option("-p, --pin <pin>", "PIN for accessing protected notes").option("--pin-stdin", "Read PIN from stdin (first line only)").configureHelp({
|
|
2500
2500
|
sortSubcommands: true,
|
|
2501
2501
|
sortOptions: true
|
|
2502
|
-
}).addHelpText("before", () => getVersionHelpLine("0.4.
|
|
2502
|
+
}).addHelpText("before", () => getVersionHelpLine("0.4.4", program.name())).addHelpText(
|
|
2503
2503
|
"after",
|
|
2504
2504
|
`
|
|
2505
2505
|
PIN Protection:
|
|
@@ -2531,7 +2531,7 @@ program.addCommand(skillsCommand);
|
|
|
2531
2531
|
program.addCommand(updateCommand);
|
|
2532
2532
|
program.addCommand(schemaCommand);
|
|
2533
2533
|
program.hook("preAction", async () => {
|
|
2534
|
-
await checkAndNotifyUpdate("0.4.
|
|
2534
|
+
await checkAndNotifyUpdate("0.4.4", "pnote");
|
|
2535
2535
|
});
|
|
2536
2536
|
process.on("SIGINT", () => {
|
|
2537
2537
|
console.error("\nInterrupted");
|