chirag-appwrite-cli 0.1.0 → 0.1.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/appwrite.config.json +420 -0
- package/docs/examples/databases/list-usage.md +2 -0
- package/docs/examples/projects/update-session-invalidation.md +3 -0
- package/docs/examples/tables/create-boolean-column.md +7 -0
- package/docs/examples/tables/create-datetime-column.md +7 -0
- package/docs/examples/tables/create-email-column.md +7 -0
- package/docs/examples/tables/create-enum-column.md +8 -0
- package/docs/examples/tables/create-float-column.md +9 -0
- package/docs/examples/tables/create-index.md +8 -0
- package/docs/examples/tables/create-integer-column.md +9 -0
- package/docs/examples/tables/create-ip-column.md +7 -0
- package/docs/examples/tables/create-relationship-column.md +9 -0
- package/docs/examples/tables/create-row.md +6 -0
- package/docs/examples/tables/create-rows.md +4 -0
- package/docs/examples/tables/create-string-column.md +9 -0
- package/docs/examples/tables/create-url-column.md +7 -0
- package/docs/examples/tables/create.md +7 -0
- package/docs/examples/tables/decrement-row-column.md +7 -0
- package/docs/examples/tables/delete-column.md +4 -0
- package/docs/examples/tables/delete-index.md +4 -0
- package/docs/examples/tables/delete-row.md +4 -0
- package/docs/examples/tables/delete-rows.md +4 -0
- package/docs/examples/tables/delete.md +3 -0
- package/docs/examples/tables/get-column.md +4 -0
- package/docs/examples/tables/get-index.md +4 -0
- package/docs/examples/tables/get-row.md +5 -0
- package/docs/examples/tables/get-usage.md +4 -0
- package/docs/examples/tables/get.md +3 -0
- package/docs/examples/tables/increment-row-column.md +7 -0
- package/docs/examples/tables/list-columns.md +4 -0
- package/docs/examples/tables/list-indexes.md +4 -0
- package/docs/examples/tables/list-logs.md +4 -0
- package/docs/examples/tables/list-row-logs.md +5 -0
- package/docs/examples/tables/list-rows.md +4 -0
- package/docs/examples/tables/list.md +4 -0
- package/docs/examples/tables/update-boolean-column.md +7 -0
- package/docs/examples/tables/update-datetime-column.md +7 -0
- package/docs/examples/tables/update-email-column.md +7 -0
- package/docs/examples/tables/update-enum-column.md +8 -0
- package/docs/examples/tables/update-float-column.md +9 -0
- package/docs/examples/tables/update-integer-column.md +9 -0
- package/docs/examples/tables/update-ip-column.md +7 -0
- package/docs/examples/tables/update-relationship-column.md +6 -0
- package/docs/examples/tables/update-row.md +6 -0
- package/docs/examples/tables/update-rows.md +5 -0
- package/docs/examples/tables/update-string-column.md +8 -0
- package/docs/examples/tables/update-url-column.md +7 -0
- package/docs/examples/tables/update.md +7 -0
- package/docs/examples/tables/upsert-row.md +4 -0
- package/docs/examples/tables/upsert-rows.md +3 -0
- package/generate/appwrite.d.ts +43 -6
- package/generate/appwrite.db.ts +75 -0
- package/lib/client-generation/languages/typescript.js +65 -0
- package/lib/commands/account.js +1 -1
- package/lib/commands/avatars.js +1 -1
- package/lib/commands/console.js +1 -1
- package/lib/commands/databases.js +2 -2
- package/lib/commands/functions.js +1 -1
- package/lib/commands/graphql.js +1 -1
- package/lib/commands/health.js +1 -1
- package/lib/commands/locale.js +1 -1
- package/lib/commands/messaging.js +1 -1
- package/lib/commands/migrations.js +1 -1
- package/lib/commands/project.js +1 -1
- package/lib/commands/projects.js +1 -1
- package/lib/commands/proxy.js +1 -1
- package/lib/commands/sites.js +1 -1
- package/lib/commands/storage.js +1 -1
- package/lib/commands/tables.js +2607 -0
- package/lib/commands/teams.js +1 -1
- package/lib/commands/tokens.js +1 -1
- package/lib/commands/types.js +45 -10
- package/lib/commands/users.js +1 -1
- package/lib/commands/vcs.js +2 -2
- package/lib/config.js +26 -14
- package/lib/type-generation/languages/dart.js +13 -13
- package/lib/type-generation/languages/java.js +13 -13
- package/lib/type-generation/languages/javascript.js +14 -14
- package/lib/type-generation/languages/kotlin.js +11 -10
- package/lib/type-generation/languages/php.js +15 -14
- package/lib/type-generation/languages/swift.js +13 -13
- package/lib/type-generation/languages/typescript.js +4 -1
- package/package.json +1 -1
- package/appwrite.json +0 -164
- /package/sites/{JavaScript starter → JavaScript starter2}/.env.example +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/LICENSE +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/images/appwrite.svg +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/images/javascript.svg +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/index.html +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/lib/appwrite.js +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/package-lock.json +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/package.json +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/readme.md +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/src/javascript.svg +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/style/app.css +0 -0
- /package/sites/{JavaScript starter → JavaScript starter2}/vite.config.js +0 -0
package/generate/appwrite.d.ts
CHANGED
|
@@ -1,18 +1,55 @@
|
|
|
1
1
|
import { type Models } from 'appwrite';
|
|
2
2
|
|
|
3
3
|
// This file is auto-generated by the Appwrite CLI.
|
|
4
|
-
// You can regenerate it by running `appwrite types -l
|
|
4
|
+
// You can regenerate it by running `appwrite types -l ts generate --verbose --include-client`.
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export enum Gender {
|
|
7
|
+
MALE = "male",
|
|
8
|
+
FEMALE = "female",
|
|
9
|
+
NON_BINARY = "non-binary"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum Status {
|
|
13
|
+
DRAFT = "draft",
|
|
14
|
+
REVIEWING = "reviewing",
|
|
15
|
+
PUBLISHED = "published"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type User = Models.Document & {
|
|
19
|
+
username: string;
|
|
20
|
+
firstName: string;
|
|
21
|
+
lastName: string;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
lastActiveAt: string;
|
|
24
|
+
post: Post[];
|
|
25
|
+
email: string;
|
|
26
|
+
avatar: string;
|
|
27
|
+
gender: Gender;
|
|
28
|
+
user_secret: string | null;
|
|
29
|
+
bio: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Post = Models.Document & {
|
|
7
33
|
title: string;
|
|
8
|
-
|
|
9
|
-
|
|
34
|
+
content: string;
|
|
35
|
+
featuredImage: string | null;
|
|
36
|
+
publishedAt: string;
|
|
37
|
+
viewCount: number;
|
|
38
|
+
user: User;
|
|
39
|
+
status: Status;
|
|
40
|
+
likes: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type ValidatedSprites = Models.Document & {
|
|
44
|
+
sprite_id: Sprites;
|
|
10
45
|
}
|
|
11
46
|
|
|
12
47
|
export type Categories = Models.Document & {
|
|
13
48
|
title: string;
|
|
14
49
|
}
|
|
15
50
|
|
|
16
|
-
export type
|
|
17
|
-
|
|
51
|
+
export type Sprites = Models.Document & {
|
|
52
|
+
title: string;
|
|
53
|
+
data: string;
|
|
54
|
+
category_id: Categories;
|
|
18
55
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Client, Databases, type Models } from 'appwrite';
|
|
2
|
+
import type { User, Post, ValidatedSprites, Categories, Sprites } from './appwrite';
|
|
3
|
+
|
|
4
|
+
// This file is auto-generated by the Appwrite CLI.
|
|
5
|
+
// You can regenerate it by running `appwrite types -l ts generate --verbose --include-client`.
|
|
6
|
+
|
|
7
|
+
const client = new Client();
|
|
8
|
+
const databases = new Databases(client);
|
|
9
|
+
|
|
10
|
+
client
|
|
11
|
+
.setEndpoint('https://fra.cloud.appwrite.io/v1')
|
|
12
|
+
.setProject('6839a26e003262977966');
|
|
13
|
+
|
|
14
|
+
export const db = {
|
|
15
|
+
user: {
|
|
16
|
+
create: (data: User) =>
|
|
17
|
+
databases.createDocument<User>('main', 'user', 'unique()', data),
|
|
18
|
+
get: (id: string) =>
|
|
19
|
+
databases.getDocument<User>('main', 'user', id),
|
|
20
|
+
update: (id: string, data: Partial<Omit<User, keyof Models.Document>>) =>
|
|
21
|
+
databases.updateDocument<User>('main', 'user', id, data),
|
|
22
|
+
delete: (id: string) =>
|
|
23
|
+
databases.deleteDocument('main', 'user', id),
|
|
24
|
+
list: (queries?: string[]) =>
|
|
25
|
+
databases.listDocuments<User>('main', 'user', queries),
|
|
26
|
+
},
|
|
27
|
+
post: {
|
|
28
|
+
create: (data: Post) =>
|
|
29
|
+
databases.createDocument<Post>('main', 'post', 'unique()', data),
|
|
30
|
+
get: (id: string) =>
|
|
31
|
+
databases.getDocument<Post>('main', 'post', id),
|
|
32
|
+
update: (id: string, data: Partial<Omit<Post, keyof Models.Document>>) =>
|
|
33
|
+
databases.updateDocument<Post>('main', 'post', id, data),
|
|
34
|
+
delete: (id: string) =>
|
|
35
|
+
databases.deleteDocument('main', 'post', id),
|
|
36
|
+
list: (queries?: string[]) =>
|
|
37
|
+
databases.listDocuments<Post>('main', 'post', queries),
|
|
38
|
+
},
|
|
39
|
+
validated_sprites: {
|
|
40
|
+
create: (data: ValidatedSprites) =>
|
|
41
|
+
databases.createDocument<ValidatedSprites>('687cad33002ad8d6c2d9', '687cc9ef0019f871c76b', 'unique()', data),
|
|
42
|
+
get: (id: string) =>
|
|
43
|
+
databases.getDocument<ValidatedSprites>('687cad33002ad8d6c2d9', '687cc9ef0019f871c76b', id),
|
|
44
|
+
update: (id: string, data: Partial<Omit<ValidatedSprites, keyof Models.Document>>) =>
|
|
45
|
+
databases.updateDocument<ValidatedSprites>('687cad33002ad8d6c2d9', '687cc9ef0019f871c76b', id, data),
|
|
46
|
+
delete: (id: string) =>
|
|
47
|
+
databases.deleteDocument('687cad33002ad8d6c2d9', '687cc9ef0019f871c76b', id),
|
|
48
|
+
list: (queries?: string[]) =>
|
|
49
|
+
databases.listDocuments<ValidatedSprites>('687cad33002ad8d6c2d9', '687cc9ef0019f871c76b', queries),
|
|
50
|
+
},
|
|
51
|
+
categories: {
|
|
52
|
+
create: (data: Categories) =>
|
|
53
|
+
databases.createDocument<Categories>('687cad33002ad8d6c2d9', '687cc6a30016f0c53718', 'unique()', data),
|
|
54
|
+
get: (id: string) =>
|
|
55
|
+
databases.getDocument<Categories>('687cad33002ad8d6c2d9', '687cc6a30016f0c53718', id),
|
|
56
|
+
update: (id: string, data: Partial<Omit<Categories, keyof Models.Document>>) =>
|
|
57
|
+
databases.updateDocument<Categories>('687cad33002ad8d6c2d9', '687cc6a30016f0c53718', id, data),
|
|
58
|
+
delete: (id: string) =>
|
|
59
|
+
databases.deleteDocument('687cad33002ad8d6c2d9', '687cc6a30016f0c53718', id),
|
|
60
|
+
list: (queries?: string[]) =>
|
|
61
|
+
databases.listDocuments<Categories>('687cad33002ad8d6c2d9', '687cc6a30016f0c53718', queries),
|
|
62
|
+
},
|
|
63
|
+
sprites: {
|
|
64
|
+
create: (data: Sprites) =>
|
|
65
|
+
databases.createDocument<Sprites>('687cad33002ad8d6c2d9', '687cad390034a29d00ca', 'unique()', data),
|
|
66
|
+
get: (id: string) =>
|
|
67
|
+
databases.getDocument<Sprites>('687cad33002ad8d6c2d9', '687cad390034a29d00ca', id),
|
|
68
|
+
update: (id: string, data: Partial<Omit<Sprites, keyof Models.Document>>) =>
|
|
69
|
+
databases.updateDocument<Sprites>('687cad33002ad8d6c2d9', '687cad390034a29d00ca', id, data),
|
|
70
|
+
delete: (id: string) =>
|
|
71
|
+
databases.deleteDocument('687cad33002ad8d6c2d9', '687cad390034a29d00ca', id),
|
|
72
|
+
list: (queries?: string[]) =>
|
|
73
|
+
databases.listDocuments<Sprites>('687cad33002ad8d6c2d9', '687cad390034a29d00ca', queries),
|
|
74
|
+
},
|
|
75
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** @typedef {import('../../type-generation/attribute').Attribute} Attribute */
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
|
|
5
|
+
const { LanguageMeta } = require("../../type-generation/languages/language");
|
|
6
|
+
|
|
7
|
+
class TypeScriptClient {
|
|
8
|
+
constructor() {
|
|
9
|
+
// Empty constructor
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
_getAppwriteDependency() {
|
|
13
|
+
if (fs.existsSync(path.resolve(process.cwd(), 'package.json'))) {
|
|
14
|
+
const packageJsonRaw = fs.readFileSync(path.resolve(process.cwd(), 'package.json'));
|
|
15
|
+
const packageJson = JSON.parse(packageJsonRaw.toString('utf-8'));
|
|
16
|
+
return packageJson.dependencies['node-appwrite'] ? 'node-appwrite' : 'appwrite';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (fs.existsSync(path.resolve(process.cwd(), 'deno.json'))) {
|
|
20
|
+
return "https://deno.land/x/appwrite/mod.ts";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return "appwrite";
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
getFileName() {
|
|
27
|
+
return "appwrite.db.ts";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
getTemplate() {
|
|
31
|
+
return `import { Client, Databases, type Models } from '${this._getAppwriteDependency()}';
|
|
32
|
+
<% const typeNames = collections.map(c => toPascalCase(c.name)); -%>
|
|
33
|
+
<% const importPath = typesFileName.replace(/\.d\.ts$/, '').replace(/\.ts$/, ''); -%>
|
|
34
|
+
import type { <%- typeNames.join(', ') %> } from './<%- importPath %>';
|
|
35
|
+
|
|
36
|
+
// This file is auto-generated by the Appwrite CLI.
|
|
37
|
+
// You can regenerate it by running \`appwrite ${process.argv.slice(2).join(' ')}\`.
|
|
38
|
+
|
|
39
|
+
const client = new Client();
|
|
40
|
+
const databases = new Databases(client);
|
|
41
|
+
|
|
42
|
+
client
|
|
43
|
+
.setEndpoint('<%- endpoint %>')
|
|
44
|
+
.setProject('<%- projectId %>');
|
|
45
|
+
|
|
46
|
+
export const db = {
|
|
47
|
+
<% for (const collection of collections) { -%>
|
|
48
|
+
<%- strict ? toCamelCase(collection.name) : collection.name %>: {
|
|
49
|
+
create: (data: <%- toPascalCase(collection.name) %>) =>
|
|
50
|
+
databases.createDocument<<%- toPascalCase(collection.name) %>>('<%- collection.databaseId %>', '<%- collection.$id %>', 'unique()', data),
|
|
51
|
+
get: (id: string) =>
|
|
52
|
+
databases.getDocument<<%- toPascalCase(collection.name) %>>('<%- collection.databaseId %>', '<%- collection.$id %>', id),
|
|
53
|
+
update: (id: string, data: Partial<Omit<<%- toPascalCase(collection.name) %>, keyof Models.Document>>) =>
|
|
54
|
+
databases.updateDocument<<%- toPascalCase(collection.name) %>>('<%- collection.databaseId %>', '<%- collection.$id %>', id, data),
|
|
55
|
+
delete: (id: string) =>
|
|
56
|
+
databases.deleteDocument('<%- collection.databaseId %>', '<%- collection.$id %>', id),
|
|
57
|
+
list: (queries?: string[]) =>
|
|
58
|
+
databases.listDocuments<<%- toPascalCase(collection.name) %>>('<%- collection.databaseId %>', '<%- collection.$id %>', queries),
|
|
59
|
+
},
|
|
60
|
+
<% } -%>
|
|
61
|
+
};`;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
module.exports = { TypeScriptClient };
|
package/lib/commands/account.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/avatars.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/console.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
|
@@ -2752,7 +2752,7 @@ databases
|
|
|
2752
2752
|
|
|
2753
2753
|
databases
|
|
2754
2754
|
.command(`upsert-documents`)
|
|
2755
|
-
.description(`**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions. Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console
|
|
2755
|
+
.description(`**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions. Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. `)
|
|
2756
2756
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2757
2757
|
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
|
|
2758
2758
|
.requiredOption(`--documents [documents...]`, `Array of document data as JSON objects. May contain partial documents.`)
|
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/graphql.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/health.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/locale.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/project.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/projects.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/proxy.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/sites.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
package/lib/commands/storage.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|