@camox/cli 0.9.0 → 0.9.1
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.mjs +4 -2
- package/package.json +2 -2
- package/template/src/styles.css +3 -0
package/dist/index.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import fs from "node:fs";
|
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
11
|
import * as p from "@clack/prompts";
|
|
12
|
+
import { log } from "@clack/prompts";
|
|
12
13
|
import { command, constant } from "@optique/core/primitives";
|
|
13
14
|
import slugify from "slugify";
|
|
14
15
|
import http from "node:http";
|
|
@@ -456,13 +457,14 @@ var logout_exports = /* @__PURE__ */ __exportAll({
|
|
|
456
457
|
const parser = command("logout", object({ command: constant("logout") }));
|
|
457
458
|
const handler = logout;
|
|
458
459
|
function logout() {
|
|
460
|
+
p.intro("camox logout");
|
|
459
461
|
const token = readAuthToken();
|
|
460
462
|
if (!token) {
|
|
461
|
-
|
|
463
|
+
log.error("Not logged in.");
|
|
462
464
|
return;
|
|
463
465
|
}
|
|
464
466
|
removeAuthToken();
|
|
465
|
-
|
|
467
|
+
p.log.success(`Logged out from ${token.name}.`);
|
|
466
468
|
}
|
|
467
469
|
//#endregion
|
|
468
470
|
//#region src/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camox/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"camox": "./dist/index.mjs"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@typescript/native-preview": "7.0.0-dev.20260412.1",
|
|
27
27
|
"oxlint": "^0.15.0",
|
|
28
28
|
"tsdown": "^0.21.8",
|
|
29
|
-
"@camox/api-contract": "0.9.
|
|
29
|
+
"@camox/api-contract": "0.9.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsdown",
|