Skip to content

Commit 1e33dfe

Browse files
committed
feat: refactoring
1 parent a64f5e4 commit 1e33dfe

File tree

5 files changed

+8
-21
lines changed

5 files changed

+8
-21
lines changed

src/SDK/Language/CLI.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,6 @@ public function getFiles()
172172
'template' => '/cli/bin/client.twig',
173173
'minify' => false,
174174
],
175-
[
176-
'scope' => 'default',
177-
'destination' => '/bin/server',
178-
'template' => '/cli/bin/server.twig',
179-
'minify' => false,
180-
],
181175
[
182176
'scope' => 'default',
183177
'destination' => '/bin/help',
@@ -208,12 +202,6 @@ public function getFiles()
208202
'template' => '/cli/app/services/client.php.twig',
209203
'minify' => false,
210204
],
211-
[
212-
'scope' => 'default',
213-
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/server.php',
214-
'template' => '/cli/app/services/server.php.twig',
215-
'minify' => false,
216-
],
217205
[
218206
'scope' => 'default',
219207
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/help.php',

templates/cli/README.md.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ If any of the required values are missing, a prompt will show up, asking for tho
5353

5454
### 2. Using the prompt
5555

56-
Invoking `{{ language.params.executableName }} init` without an params triggers an interactive prompt where you can manually enter the details. These values are saved locally so that you dont have to re-enter them everytime.
56+
Invoking `{{ language.params.executableName }} init` without any params triggers an interactive prompt where you can manually enter the details. These values are saved locally so that you dont have to re-enter them everytime.
57+
58+
### Note
59+
By default, requests to domains with self signed SSL certificates (or no certificates) are disabled. If you trust the domain, you can bypass the certificate validation by using
60+
```sh
61+
$ appwrite client setSelfSigned --value=true
62+
```
5763

5864
## Usage
5965

templates/cli/app/services/server.php.twig

Whitespace-only changes.

templates/cli/bin/server.twig

Lines changed: 0 additions & 7 deletions
This file was deleted.

templates/cli/install.sh.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ if [[ -z $1 ]]; then
125125
set -- "$@" help
126126
fi
127127
128-
# Check if the command is in the whitelist
128+
# Check if the command is in the allowList
129129
if [[ ! " ${allowList[@]} " =~ " ${1} " ]]; then
130130
printf "\nLooks like a crazy hamster 🐹 flipped a bit.\n\nUse {{ language.params.executableName }} help for a list of supported commands.\n"
131131
exit 1

0 commit comments

Comments
 (0)