Skip to content

Commit e8a0c17

Browse files
committed
fixes functions scripts
1 parent 65d5296 commit e8a0c17

File tree

9 files changed

+20
-10
lines changed

9 files changed

+20
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
0.17.0
32+
0.17.1
3333
```
3434

3535
### Install using prebuilt binaries
@@ -58,7 +58,7 @@ $ iwr -useb https://appwrite.io/cli/install.ps1 | iex
5858
Once the installation completes, you can verify your install using
5959
```
6060
$ appwrite -v
61-
0.17.0
61+
0.17.1
6262
```
6363

6464
## Getting Started

docs/examples/account/delete.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
appwrite account delete
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
appwrite health getQueueUsage

install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# You can use "View source" of this page to see the full script.
1414

1515
# REPO
16-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/0.17.0/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/0.17.0/appwrite-cli-win-arm64.exe"
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"
1818

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ printSuccess() {
9797
downloadBinary() {
9898
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
9999

100-
GITHUB_LATEST_VERSION="0.17.0"
100+
GITHUB_LATEST_VERSION="0.17.1"
101101
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102102
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103103

lib/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Client {
1212
this.endpoint = 'https://HOSTNAME/v1';
1313
this.headers = {
1414
'content-type': '',
15-
'x-sdk-version': 'appwrite:cli:0.17.0',
16-
'User-Agent' : `AppwriteCLI/0.17.0 (${os.type()} ${os.version()}; ${os.arch()})`,
15+
'x-sdk-version': 'appwrite:cli:0.17.1',
16+
'User-Agent' : `AppwriteCLI/0.17.1 (${os.type()} ${os.version()}; ${os.arch()})`,
1717
'X-Appwrite-Response-Format' : '0.14.0',
1818
};
1919
}

lib/commands/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const deployFunction = async () => {
149149
let response = {};
150150

151151
let answers = await inquirer.prompt(questionsDeployFunctions)
152-
let functions = answers.functions
152+
let functions = answers.functions.map((func) => JSONbig.parse(func))
153153

154154
for (let func of functions) {
155155
log(`Deploying function ${func.name} ( ${func['$id']} )`)

lib/questions.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ const getEntrypoint = (runtime) => {
5555
return 'main.rs';
5656
case 'swift':
5757
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';
5866
}
5967

6068
return undefined;
@@ -197,7 +205,7 @@ const questionsDeployFunctions = [
197205
let choices = functions.map((func, idx) => {
198206
return {
199207
name: `${func.name} (${func['$id']})`,
200-
value: func
208+
value: JSONbig.stringify(func)
201209
}
202210
})
203211
return choices;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "appwrite-cli",
33
"homepage": "https://appwrite.io/support",
44
"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.0",
5+
"version": "0.17.1",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"bin": {

0 commit comments

Comments
 (0)