Skip to content

Commit

Permalink
chore: release rc
Browse files Browse the repository at this point in the history
  • Loading branch information
christyjacob4 committed Aug 17, 2024
1 parent 86506a4 commit b4e724d
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 34 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using

```sh
$ appwrite -v
6.0.0-rc.7
6.0.0-rc.8
```

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

## Getting Started
Expand Down
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# You can use "View source" of this page to see the full script.

# REPO
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-arm64.exe"
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/appwrite-cli-win-x64.exe"
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/appwrite-cli-win-arm64.exe"

$APPWRITE_BINARY_NAME = "appwrite.exe"

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ printSuccess() {
downloadBinary() {
echo "[2/4] Downloading executable for $OS ($ARCH) ..."

GITHUB_LATEST_VERSION="6.0.0-rc.7"
GITHUB_LATEST_VERSION="6.0.0-rc.8"
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"

Expand Down
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Client {
'x-sdk-name': 'Command Line',
'x-sdk-platform': 'console',
'x-sdk-language': 'cli',
'x-sdk-version': '6.0.0-rc.7',
'user-agent' : `AppwriteCLI/6.0.0-rc.7 (${os.type()} ${os.version()}; ${os.arch()})`,
'x-sdk-version': '6.0.0-rc.8',
'user-agent' : `AppwriteCLI/6.0.0-rc.8 (${os.type()} ${os.version()}; ${os.arch()})`,
'X-Appwrite-Response-Format' : '1.6.0',
};
}
Expand Down
33 changes: 11 additions & 22 deletions lib/commands/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const functionsList = async ({queries,search,parseOutput = true, overrideForCli
* @property {string} templateRepository Repository name of the template.
* @property {string} templateOwner The name of the owner of the template.
* @property {string} templateRootDirectory Path to function code in the template repo.
* @property {string} templateBranch Production branch for the repo linked to the function template.
* @property {string} templateVersion Version (tag) for the repo linked to the function template.
* @property {boolean} overrideForCli
* @property {boolean} parseOutput
* @property {libClient | undefined} sdk
Expand All @@ -112,7 +112,7 @@ const functionsList = async ({queries,search,parseOutput = true, overrideForCli
/**
* @param {FunctionsCreateRequestParams} params
*/
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}) => {
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}) => {
let client = !sdk ? await sdkForProject() :
sdk;
let apiPath = '/functions';
Expand Down Expand Up @@ -180,8 +180,8 @@ const functionsCreate = async ({functionId,name,runtime,execute,events,schedule,
if (typeof templateRootDirectory !== 'undefined') {
payload['templateRootDirectory'] = templateRootDirectory;
}
if (typeof templateBranch !== 'undefined') {
payload['templateBranch'] = templateBranch;
if (typeof templateVersion !== 'undefined') {
payload['templateVersion'] = templateVersion;
}

let response = undefined;
Expand Down Expand Up @@ -514,7 +514,7 @@ const functionsDelete = async ({functionId,parseOutput = true, overrideForCli =
/**
* @typedef {Object} FunctionsListDeploymentsRequestParams
* @property {string} functionId Function ID.
* @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
* @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
* @property {string} search Search term to filter your list results. Max length: 256 chars.
* @property {boolean} overrideForCli
* @property {boolean} parseOutput
Expand Down Expand Up @@ -985,16 +985,17 @@ const functionsListExecutions = async ({functionId,queries,search,parseOutput =
* @property {string} xpath HTTP path of execution. Path can include query params. Default value is /
* @property {ExecutionMethod} method HTTP method of execution. Default value is GET.
* @property {object} headers HTTP headers of execution. Defaults to empty.
* @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.
* @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.
* @property {boolean} overrideForCli
* @property {boolean} parseOutput
* @property {libClient | undefined} sdk
* @property {CallableFunction} onProgress
*/

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

let response = undefined;

response = await client.call('post', apiPath, {
'content-type': 'application/json',
}, payload);

if (parseOutput) {
parse(response)
}

return response;

}

/**
Expand Down Expand Up @@ -1344,7 +1333,7 @@ functions
.option(`--template-repository <template-repository>`, `Repository name of the template.`)
.option(`--template-owner <template-owner>`, `The name of the owner of the template.`)
.option(`--template-root-directory <template-root-directory>`, `Path to function code in the template repo.`)
.option(`--template-branch <template-branch>`, `Production branch for the repo linked to the function template.`)
.option(`--template-version <template-version>`, `Version (tag) for the repo linked to the function template.`)
.action(actionRunner(functionsCreate))

functions
Expand Down Expand Up @@ -1414,7 +1403,7 @@ functions
.command(`list-deployments`)
.description(`Get a list of all the project's code deployments. You can use the query params to filter your results.`)
.requiredOption(`--function-id <function-id>`, `Function ID.`)
.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`)
.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`)
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
.option(`--console`, `Get the resource console url`)
.action(actionRunner(functionsListDeployments))
Expand Down Expand Up @@ -1493,7 +1482,7 @@ functions
.option(`--xpath <xpath>`, `HTTP path of execution. Path can include query params. Default value is /`)
.option(`--method <method>`, `HTTP method of execution. Default value is GET.`)
.option(`--headers <headers>`, `HTTP headers of execution. Defaults to empty.`)
.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.`)
.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.`)
.action(actionRunner(functionsCreateExecution))

functions
Expand Down
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const parseError = (err) => {
} catch {
}

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "appwrite-cli",
"homepage": "https://appwrite.io/support",
"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",
"version": "6.0.0-rc.7",
"version": "6.0.0-rc.8",
"license": "BSD-3-Clause",
"main": "index.js",
"bin": {
Expand Down
6 changes: 3 additions & 3 deletions scoop/appwrite.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
"version": "6.0.0-rc.7",
"version": "6.0.0-rc.8",
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
"homepage": "https://github.com/appwrite/sdk-for-cli",
"license": "BSD-3-Clause",
"architecture": {
"64bit": {
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-x64.exe",
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/appwrite-cli-win-x64.exe",
"bin": [
[
"appwrite-cli-win-x64.exe",
Expand All @@ -15,7 +15,7 @@
]
},
"arm64": {
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.7/appwrite-cli-win-arm64.exe",
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/6.0.0-rc.8/appwrite-cli-win-arm64.exe",
"bin": [
[
"appwrite-cli-win-arm64.exe",
Expand Down

0 comments on commit b4e724d

Please sign in to comment.