@lizard-build/cli 0.3.76 → 0.3.77
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/commands/workspace.d.ts +1 -1
- package/dist/commands/workspace.js +17 -3
- package/dist/commands/workspace.js.map +1 -1
- package/dist/lib/updater.d.ts +1 -1
- package/dist/lib/updater.js +1 -1
- package/package.json +1 -1
- package/src/commands/workspace.ts +20 -3
- package/src/lib/updater.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
/**
|
|
3
|
-
* `lizard workspace` —
|
|
3
|
+
* `lizard workspace` — create and list workspaces.
|
|
4
4
|
*
|
|
5
5
|
* Member management (invite/remove/rename) intentionally lives in the
|
|
6
6
|
* dashboard, not here, to keep CLI surface narrow (Railway model).
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
|
+
import { api } from "../lib/api.js";
|
|
2
3
|
import { fetchWorkspaces } from "../lib/picker.js";
|
|
3
|
-
import { isJSONMode, printJSON, table } from "../lib/format.js";
|
|
4
|
+
import { isJSONMode, printJSON, table, success, info } from "../lib/format.js";
|
|
4
5
|
/**
|
|
5
|
-
* `lizard workspace` —
|
|
6
|
+
* `lizard workspace` — create and list workspaces.
|
|
6
7
|
*
|
|
7
8
|
* Member management (invite/remove/rename) intentionally lives in the
|
|
8
9
|
* dashboard, not here, to keep CLI surface narrow (Railway model).
|
|
@@ -10,7 +11,20 @@ import { isJSONMode, printJSON, table } from "../lib/format.js";
|
|
|
10
11
|
export function registerWorkspace(program) {
|
|
11
12
|
const ws = program
|
|
12
13
|
.command("workspace")
|
|
13
|
-
.description("
|
|
14
|
+
.description("Create and list workspaces");
|
|
15
|
+
ws.command("create")
|
|
16
|
+
.argument("<name>", "Workspace name")
|
|
17
|
+
.description("Create a new workspace")
|
|
18
|
+
.action(async (name) => {
|
|
19
|
+
const workspace = await api.post("/api/workspaces", { name });
|
|
20
|
+
if (isJSONMode()) {
|
|
21
|
+
printJSON(workspace);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
success(`Workspace ${chalk.bold(workspace.name)} created`);
|
|
25
|
+
info(chalk.dim(` Slug: ${workspace.slug}`));
|
|
26
|
+
info(chalk.dim(` Add a project: lizard project create <name> --workspace ${workspace.slug}`));
|
|
27
|
+
});
|
|
14
28
|
ws.command("list")
|
|
15
29
|
.alias("ls")
|
|
16
30
|
.description("List workspaces you belong to")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../src/commands/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../src/commands/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAkB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAgB;IAChD,MAAM,EAAE,GAAG,OAAO;SACf,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAE7C,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;SACjB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;SACpC,WAAW,CAAC,wBAAwB,CAAC;SACrC,MAAM,CAAC,KAAK,EAAE,IAAY,EAAE,EAAE;QAC7B,MAAM,SA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AAC,CAAC,CAAC,EAAE;SACrC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/lib/updater.d.ts
CHANGED
package/dist/lib/updater.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Readable } from "node:stream";
|
|
|
4
4
|
import { join, dirname } from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
|
-
export const CURRENT_VERSION = "0.3.
|
|
7
|
+
export const CURRENT_VERSION = "0.3.77";
|
|
8
8
|
const RELEASES_API = "https://api.github.com/repos/lizard-build/lizard-cli/releases/latest";
|
|
9
9
|
const RELEASE_BASE = "https://github.com/lizard-build/lizard-cli/releases/latest/download";
|
|
10
10
|
/** Minimum gap between background update checks. */
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import { Command } from "commander";
|
|
3
|
+
import { api, type Workspace } from "../lib/api.js";
|
|
3
4
|
import { fetchWorkspaces } from "../lib/picker.js";
|
|
4
|
-
import { isJSONMode, printJSON, table } from "../lib/format.js";
|
|
5
|
+
import { isJSONMode, printJSON, table, success, info } from "../lib/format.js";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
|
-
* `lizard workspace` —
|
|
8
|
+
* `lizard workspace` — create and list workspaces.
|
|
8
9
|
*
|
|
9
10
|
* Member management (invite/remove/rename) intentionally lives in the
|
|
10
11
|
* dashboard, not here, to keep CLI surface narrow (Railway model).
|
|
@@ -12,7 +13,23 @@ import { isJSONMode, printJSON, table } from "../lib/format.js";
|
|
|
12
13
|
export function registerWorkspace(program: Command) {
|
|
13
14
|
const ws = program
|
|
14
15
|
.command("workspace")
|
|
15
|
-
.description("
|
|
16
|
+
.description("Create and list workspaces");
|
|
17
|
+
|
|
18
|
+
ws.command("create")
|
|
19
|
+
.argument("<name>", "Workspace name")
|
|
20
|
+
.description("Create a new workspace")
|
|
21
|
+
.action(async (name: string) => {
|
|
22
|
+
const workspace = await api.post<Workspace>("/api/workspaces", { name });
|
|
23
|
+
|
|
24
|
+
if (isJSONMode()) {
|
|
25
|
+
printJSON(workspace);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
success(`Workspace ${chalk.bold(workspace.name)} created`);
|
|
30
|
+
info(chalk.dim(` Slug: ${workspace.slug}`));
|
|
31
|
+
info(chalk.dim(` Add a project: lizard project create <name> --workspace ${workspace.slug}`));
|
|
32
|
+
});
|
|
16
33
|
|
|
17
34
|
ws.command("list")
|
|
18
35
|
.alias("ls")
|
package/src/lib/updater.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { join, dirname } from "node:path";
|
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
|
|
8
|
-
export const CURRENT_VERSION = "0.3.
|
|
8
|
+
export const CURRENT_VERSION = "0.3.77";
|
|
9
9
|
const RELEASES_API = "https://api.github.com/repos/lizard-build/lizard-cli/releases/latest";
|
|
10
10
|
const RELEASE_BASE = "https://github.com/lizard-build/lizard-cli/releases/latest/download";
|
|
11
11
|
|