Skip to content

Commit b4e724d

Browse files
committed
chore: release rc
1 parent 86506a4 commit b4e724d

File tree

8 files changed

+23
-34
lines changed

8 files changed

+23
-34
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-
6.0.0-rc.7
32+
6.0.0-rc.8
3333
```
3434

3535
### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
6060
Once the installation completes, you can verify your install using
6161
```
6262
$ appwrite -v
63-
6.0.0-rc.7
63+
6.0.0-rc.8
6464
```
6565

6666
## Getting Started

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/6.0.0-rc.7/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/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="6.0.0-rc.7"
100+
GITHUB_LATEST_VERSION="6.0.0-rc.8"
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
@@ -16,8 +16,8 @@ class Client {
1616
'x-sdk-name': 'Command Line',
1717
'x-sdk-platform': 'console',
1818
'x-sdk-language': 'cli',
19-
'x-sdk-version': '6.0.0-rc.7',
20-
'user-agent' : `AppwriteCLI/6.0.0-rc.7 (${os.type()} ${os.version()}; ${os.arch()})`,
19+
'x-sdk-version': '6.0.0-rc.8',
20+
'user-agent' : `AppwriteCLI/6.0.0-rc.8 (${os.type()} ${os.version()}; ${os.arch()})`,
2121
'X-Appwrite-Response-Format' : '1.6.0',
2222
};
2323
}

lib/commands/functions.js

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const functionsList = async ({queries,search,parseOutput = true, overrideForCli
103103
* @property {string} templateRepository Repository name of the template.
104104
* @property {string} templateOwner The name of the owner of the template.
105105
* @property {string} templateRootDirectory Path to function code in the template repo.
106-
* @property {string} templateBranch Production branch for the repo linked to the function template.
106+
* @property {string} templateVersion Version (tag) for the repo linked to the function template.
107107
* @property {boolean} overrideForCli
108108
* @property {boolean} parseOutput
109109
* @property {libClient | undefined} sdk
@@ -112,7 +112,7 @@ const functionsList = async ({queries,search,parseOutput = true, overrideForCli
112112
/**
113113
* @param {FunctionsCreateRequestParams} params
114114
*/
115-
const functionsCreate = async ({functionId,name,runtime,execute,events,schedule,timeout,enabled,logging,entrypoint,commands,scopes,installationId,providerRepositoryId,providerBranch,providerSilentMode,providerRootDirectory,templateRepository,templateOwner,templateRootDirectory,templateBranch,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
115+
const functionsCreate = async ({functionId,name,runtime,execute,events,schedule,timeout,enabled,logging,entrypoint,commands,scopes,installationId,providerRepositoryId,providerBranch,providerSilentMode,providerRootDirectory,templateRepository,templateOwner,templateRootDirectory,templateVersion,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
116116
let client = !sdk ? await sdkForProject() :
117117
sdk;
118118
let apiPath = '/functions';
@@ -180,8 +180,8 @@ const functionsCreate = async ({functionId,name,runtime,execute,events,schedule,
180180
if (typeof templateRootDirectory !== 'undefined') {
181181
payload['templateRootDirectory'] = templateRootDirectory;
182182
}
183-
if (typeof templateBranch !== 'undefined') {
184-
payload['templateBranch'] = templateBranch;
183+
if (typeof templateVersion !== 'undefined') {
184+
payload['templateVersion'] = templateVersion;
185185
}
186186

187187
let response = undefined;
@@ -514,7 +514,7 @@ const functionsDelete = async ({functionId,parseOutput = true, overrideForCli =
514514
/**
515515
* @typedef {Object} FunctionsListDeploymentsRequestParams
516516
* @property {string} functionId Function ID.
517-
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands
517+
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands, type, size
518518
* @property {string} search Search term to filter your list results. Max length: 256 chars.
519519
* @property {boolean} overrideForCli
520520
* @property {boolean} parseOutput
@@ -985,16 +985,17 @@ const functionsListExecutions = async ({functionId,queries,search,parseOutput =
985985
* @property {string} xpath HTTP path of execution. Path can include query params. Default value is /
986986
* @property {ExecutionMethod} method HTTP method of execution. Default value is GET.
987987
* @property {object} headers HTTP headers of execution. Defaults to empty.
988-
* @property {string} scheduledAt Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
988+
* @property {string} scheduledAt Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
989989
* @property {boolean} overrideForCli
990990
* @property {boolean} parseOutput
991991
* @property {libClient | undefined} sdk
992+
* @property {CallableFunction} onProgress
992993
*/
993994

994995
/**
995996
* @param {FunctionsCreateExecutionRequestParams} params
996997
*/
997-
const functionsCreateExecution = async ({functionId,body,async,xpath,method,headers,scheduledAt,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
998+
const functionsCreateExecution = async ({functionId,body,async,xpath,method,headers,scheduledAt,parseOutput = true, overrideForCli = false, sdk = undefined,onProgress = () => {}}) => {
998999
let client = !sdk ? await sdkForProject() :
9991000
sdk;
10001001
let apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
@@ -1018,18 +1019,6 @@ const functionsCreateExecution = async ({functionId,body,async,xpath,method,head
10181019
payload['scheduledAt'] = scheduledAt;
10191020
}
10201021

1021-
let response = undefined;
1022-
1023-
response = await client.call('post', apiPath, {
1024-
'content-type': 'application/json',
1025-
}, payload);
1026-
1027-
if (parseOutput) {
1028-
parse(response)
1029-
}
1030-
1031-
return response;
1032-
10331022
}
10341023

10351024
/**
@@ -1344,7 +1333,7 @@ functions
13441333
.option(`--template-repository <template-repository>`, `Repository name of the template.`)
13451334
.option(`--template-owner <template-owner>`, `The name of the owner of the template.`)
13461335
.option(`--template-root-directory <template-root-directory>`, `Path to function code in the template repo.`)
1347-
.option(`--template-branch <template-branch>`, `Production branch for the repo linked to the function template.`)
1336+
.option(`--template-version <template-version>`, `Version (tag) for the repo linked to the function template.`)
13481337
.action(actionRunner(functionsCreate))
13491338

13501339
functions
@@ -1414,7 +1403,7 @@ functions
14141403
.command(`list-deployments`)
14151404
.description(`Get a list of all the project's code deployments. You can use the query params to filter your results.`)
14161405
.requiredOption(`--function-id <function-id>`, `Function ID.`)
1417-
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands`)
1406+
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands, type, size`)
14181407
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
14191408
.option(`--console`, `Get the resource console url`)
14201409
.action(actionRunner(functionsListDeployments))
@@ -1493,7 +1482,7 @@ functions
14931482
.option(`--xpath <xpath>`, `HTTP path of execution. Path can include query params. Default value is /`)
14941483
.option(`--method <method>`, `HTTP method of execution. Default value is GET.`)
14951484
.option(`--headers <headers>`, `HTTP headers of execution. Defaults to empty.`)
1496-
.option(`--scheduled-at <scheduled-at>`, `Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
1485+
.option(`--scheduled-at <scheduled-at>`, `Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.`)
14971486
.action(actionRunner(functionsCreateExecution))
14981487

14991488
functions

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const parseError = (err) => {
120120
} catch {
121121
}
122122

123-
const version = '6.0.0-rc.7';
123+
const version = '6.0.0-rc.8';
124124
const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
125125
const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud}`;
126126

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": "6.0.0-rc.7",
5+
"version": "6.0.0-rc.8",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"bin": {

scoop/appwrite.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3-
"version": "6.0.0-rc.7",
3+
"version": "6.0.0-rc.8",
44
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
55
"homepage": "https://github.com/appwrite/sdk-for-cli",
66
"license": "BSD-3-Clause",
77
"architecture": {
88
"64bit": {
9-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-x64.exe",
9+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/appwrite-cli-win-x64.exe",
1010
"bin": [
1111
[
1212
"appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"arm64": {
18-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-arm64.exe",
18+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/appwrite-cli-win-arm64.exe",
1919
"bin": [
2020
[
2121
"appwrite-cli-win-arm64.exe",

0 commit comments

Comments
 (0)