@blinkdotnew/cli 0.4.0 → 0.4.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/cli.js +2 -2
- package/package.json +1 -1
- package/src/commands/project.ts +2 -2
package/dist/cli.js
CHANGED
|
@@ -1980,7 +1980,7 @@ After creating a project, link it to your current directory:
|
|
|
1980
1980
|
`);
|
|
1981
1981
|
project.command("list").description("List all projects").action(async () => {
|
|
1982
1982
|
requireToken();
|
|
1983
|
-
const result = await withSpinner("Loading projects...", () => appRequest("/api/projects"));
|
|
1983
|
+
const result = await withSpinner("Loading projects...", () => appRequest("/api/v1/projects"));
|
|
1984
1984
|
if (isJsonMode()) return printJson(result);
|
|
1985
1985
|
const projects = result?.projects ?? result ?? [];
|
|
1986
1986
|
const table = createTable(["ID", "Name", "URL"]);
|
|
@@ -2026,7 +2026,7 @@ After linking, most commands work without specifying a project_id:
|
|
|
2026
2026
|
requireToken();
|
|
2027
2027
|
let id = projectId;
|
|
2028
2028
|
if (!id) {
|
|
2029
|
-
const result = await withSpinner("Loading projects...", () => appRequest("/api/projects"));
|
|
2029
|
+
const result = await withSpinner("Loading projects...", () => appRequest("/api/v1/projects"));
|
|
2030
2030
|
const projects = result?.projects ?? result ?? [];
|
|
2031
2031
|
if (!projects.length) {
|
|
2032
2032
|
console.log("No projects found. Create one with `blink project create <name>`.");
|
package/package.json
CHANGED
package/src/commands/project.ts
CHANGED
|
@@ -23,7 +23,7 @@ After creating a project, link it to your current directory:
|
|
|
23
23
|
.description('List all projects')
|
|
24
24
|
.action(async () => {
|
|
25
25
|
requireToken()
|
|
26
|
-
const result = await withSpinner('Loading projects...', () => appRequest('/api/projects'))
|
|
26
|
+
const result = await withSpinner('Loading projects...', () => appRequest('/api/v1/projects'))
|
|
27
27
|
if (isJsonMode()) return printJson(result)
|
|
28
28
|
const projects: Array<{ id: string; name: string; slug: string }> = result?.projects ?? result ?? []
|
|
29
29
|
const table = createTable(['ID', 'Name', 'URL'])
|
|
@@ -76,7 +76,7 @@ After linking, most commands work without specifying a project_id:
|
|
|
76
76
|
requireToken()
|
|
77
77
|
let id = projectId
|
|
78
78
|
if (!id) {
|
|
79
|
-
const result = await withSpinner('Loading projects...', () => appRequest('/api/projects'))
|
|
79
|
+
const result = await withSpinner('Loading projects...', () => appRequest('/api/v1/projects'))
|
|
80
80
|
const projects: Array<{ id: string; name: string }> = result?.projects ?? result ?? []
|
|
81
81
|
if (!projects.length) {
|
|
82
82
|
console.log('No projects found. Create one with `blink project create <name>`.')
|