Skip to content

Commit ec10de4

Browse files
committed
feat: move Appwrite logo to params
1 parent f4dd039 commit ec10de4

File tree

4 files changed

+10
-31
lines changed

4 files changed

+10
-31
lines changed

example.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,13 @@ function getSSLPage($url) {
335335
$cli = new CLI();
336336
$cli->setExecutableName('appwrite');
337337
$cli->setLogo("
338-
_ _ _
339-
/_\ _ __ _ ____ ___ __(_) |_ ___
340-
//_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \
341-
/ _ \ |_) | |_) \ V V /| | | | || __/
342-
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___|
343-
|_| |_|
344-
345-
");
338+
_ _ _ ___ __ _____
339+
/_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
340+
//_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
341+
/ _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
342+
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
343+
|_| |_|
344+
");
346345
$sdk = new SDK($cli, new Swagger2($spec));
347346
$sdk
348347
->setName('NAME')

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,7 @@ $cli->
2121
$description = $task->getLabel('description', '');
2222
$params = $task->getParams();
2323
24-
Console::log("\e[0;31;m
25-
_ _ _
26-
/_\ _ __ _ ____ ___ __(_) |_ ___
27-
//_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \
28-
/ _ \ |_) | |_) \ V V /| | | | || __/
29-
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___|
30-
|_| |_|
31-
32-
\e[0m") ;
24+
Console::log("\e[0;31;m {{ language.params.logo | raw }} \e[0m") ;
3325
3426
printf("\nUsage : {{ language.params.executableName }} client {$taskName} --[OPTIONS] \n\n");
3527
printf($description);

templates/cli/install.ps1.twig

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,7 @@ docker run -i --rm --volume appwrite-cli:/usr/local/code/app/.preferences/ --vol
4848
$USER_PATH_ENV_VAR = [Environment]::GetEnvironmentVariable("PATH", "User")
4949

5050
function Greeting {
51-
Write-Host @"
52-
_ _ _ ___ __ _____
53-
/_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
54-
//_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
55-
/ _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
56-
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
57-
|_| |_|
51+
Write-Host @"{{ language.params.logo | raw }}
5852
"@ -ForegroundColor red
5953
Write-Host "Welcome to the Appwrite CLI install shield."
6054

templates/cli/install.sh.twig

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ NC='\033[0m' # No Color
4242

4343
greeting() {
4444
echo -e "${RED}"
45-
cat << "EOF"
46-
_ _ _ ___ __ _____
47-
/_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
48-
//_\\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
49-
/ _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
50-
\_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
51-
|_| |_|
45+
cat << "EOF"{{ language.params.logo | raw }}
5246
EOF
5347
echo -e "${NC}\n"
5448
echo "🔥 Welcome to the Appwrite CLI install shield 🛡."

0 commit comments

Comments
 (0)