appwrite-cli 0.17.0 → 0.17.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/README.md +2 -2
- package/docs/examples/account/delete.md +1 -0
- package/docs/examples/health/get-queue-usage.md +1 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +2 -2
- package/lib/commands/deploy.js +1 -1
- package/lib/questions.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
|
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
31
|
$ appwrite -v
|
|
32
|
-
0.17.
|
|
32
|
+
0.17.1
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Install using prebuilt binaries
|
|
@@ -58,7 +58,7 @@ $ iwr -useb https://appwrite.io/cli/install.ps1 | iex
|
|
|
58
58
|
Once the installation completes, you can verify your install using
|
|
59
59
|
```
|
|
60
60
|
$ appwrite -v
|
|
61
|
-
0.17.
|
|
61
|
+
0.17.1
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
## Getting Started
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite account delete
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
appwrite health getQueueUsage
|
package/install.ps1
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
# You can use "View source" of this page to see the full script.
|
|
14
14
|
|
|
15
15
|
# REPO
|
|
16
|
-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/0.17.
|
|
17
|
-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/0.17.
|
|
16
|
+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/0.17.1/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/0.17.1/appwrite-cli-win-arm64.exe"
|
|
18
18
|
|
|
19
19
|
$APPWRITE_BINARY_NAME = "appwrite.exe"
|
|
20
20
|
|
package/install.sh
CHANGED
|
@@ -97,7 +97,7 @@ printSuccess() {
|
|
|
97
97
|
downloadBinary() {
|
|
98
98
|
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
|
|
99
99
|
|
|
100
|
-
GITHUB_LATEST_VERSION="0.17.
|
|
100
|
+
GITHUB_LATEST_VERSION="0.17.1"
|
|
101
101
|
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
|
|
102
102
|
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
|
|
103
103
|
|
package/lib/client.js
CHANGED
|
@@ -12,8 +12,8 @@ class Client {
|
|
|
12
12
|
this.endpoint = 'https://HOSTNAME/v1';
|
|
13
13
|
this.headers = {
|
|
14
14
|
'content-type': '',
|
|
15
|
-
'x-sdk-version': 'appwrite:cli:0.17.
|
|
16
|
-
'User-Agent' : `AppwriteCLI/0.17.
|
|
15
|
+
'x-sdk-version': 'appwrite:cli:0.17.1',
|
|
16
|
+
'User-Agent' : `AppwriteCLI/0.17.1 (${os.type()} ${os.version()}; ${os.arch()})`,
|
|
17
17
|
'X-Appwrite-Response-Format' : '0.14.0',
|
|
18
18
|
};
|
|
19
19
|
}
|
package/lib/commands/deploy.js
CHANGED
|
@@ -149,7 +149,7 @@ const deployFunction = async () => {
|
|
|
149
149
|
let response = {};
|
|
150
150
|
|
|
151
151
|
let answers = await inquirer.prompt(questionsDeployFunctions)
|
|
152
|
-
let functions = answers.functions
|
|
152
|
+
let functions = answers.functions.map((func) => JSONbig.parse(func))
|
|
153
153
|
|
|
154
154
|
for (let func of functions) {
|
|
155
155
|
log(`Deploying function ${func.name} ( ${func['$id']} )`)
|
package/lib/questions.js
CHANGED
|
@@ -55,6 +55,14 @@ const getEntrypoint = (runtime) => {
|
|
|
55
55
|
return 'main.rs';
|
|
56
56
|
case 'swift':
|
|
57
57
|
return 'Sources/swift-5.5/main.swift';
|
|
58
|
+
case 'cpp':
|
|
59
|
+
return 'src/index.cc';
|
|
60
|
+
case 'dotnet':
|
|
61
|
+
return 'src/Index.cs';
|
|
62
|
+
case 'java':
|
|
63
|
+
return 'src/Index.java';
|
|
64
|
+
case 'kotlin':
|
|
65
|
+
return 'src/Index.kt';
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
return undefined;
|
|
@@ -197,7 +205,7 @@ const questionsDeployFunctions = [
|
|
|
197
205
|
let choices = functions.map((func, idx) => {
|
|
198
206
|
return {
|
|
199
207
|
name: `${func.name} (${func['$id']})`,
|
|
200
|
-
value: func
|
|
208
|
+
value: JSONbig.stringify(func)
|
|
201
209
|
}
|
|
202
210
|
})
|
|
203
211
|
return choices;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "appwrite-cli",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "0.17.
|
|
5
|
+
"version": "0.17.1",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"bin": {
|