@within-7/jetr 0.4.1 → 0.4.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.
- package/dist/cli.js +4 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -543,6 +543,10 @@ program.command("whoami").description("Show current login status").action(() =>
|
|
|
543
543
|
console.log(`User: ${chalk2.bold(config.user || "unknown")}`);
|
|
544
544
|
console.log(`Token: ${config.token.slice(0, 20)}...`);
|
|
545
545
|
});
|
|
546
|
+
program.command("logout").description("Clear saved login credentials").action(() => {
|
|
547
|
+
saveConfig({ user: void 0, token: void 0 });
|
|
548
|
+
console.log(chalk2.green("\u2713 Logged out"));
|
|
549
|
+
});
|
|
546
550
|
program.command("init").description("Create .jetrignore with default patterns").argument("[directory]", "Target directory", ".").action(async (directory) => {
|
|
547
551
|
const created = createJetrignore(resolve2(directory));
|
|
548
552
|
if (created) {
|