File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ printf("\nUsage : appwrite [SERVICE] [COMMAND] --[OPTION]\n\n");
1616printf (" Services :\n " );
1717$mask = " \t %-20.20s %-125.125s\n " ;
1818{% for service in spec . services % }
19- printf ($mask , " {{ service.name }}" , " {{ service.description }}" );
19+ printf ($mask , " {{ service.name }}" , " {{ service.description | replace({' " ' : ' \ ' ' }) | raw }}" );
2020{% endfor %}
2121printf(" \nRun ' appwrite [SERVICE] help' for more information on a service . \n " );
Original file line number Diff line number Diff line change 7272{% if parameter.type == 'file' and method.packaging %}
7373 $cloudFunctionPath = realpath(__DIR__.'/../../../files/'.${{ parameter.name | caseCamel }});
7474 $cloudFunctionParentDir = dirname($cloudFunctionPath , 1);
75- $cloudFunctionDirName = basename(${{ parameter.name | caseCamel }} );
75+ $cloudFunctionDirName = basename($cloudFunctionPath );
7676 if (file_exists($cloudFunctionPath ) === false ) {
7777 throw new Exception(" Path doesn ' t exist. Please ensure that the path is within the current directory. ");
7878 }
7979 $archiveName = ' code . tar . gz ' ;
8080 $volumeMountPoint = realpath(__DIR__.' / .. / .. / .. / files / ' );
81- exec("tar -zcvf $archiveName --exclude=$archiveName - C ${ cloudFunctionParentDir} $cloudFunctionDirName && mv ${ archiveName} ${ volumeMountPoint} ");
82- $archivePath = realpath($volumeMountPoint."/$archiveName");$archivePath = realpath($volumeMountPoint."/$archiveName");
81+ exec("tar -zcvf $archiveName -C $cloudFunctionParentDir $cloudFunctionDirName && mv $archiveName $ volumeMountPoint");
82+ $archivePath = realpath($volumeMountPoint."/$archiveName");
8383 $cFile = new \CURLFile($archivePath, ' application / x - gzip ' , basename($archivePath));
8484
8585 $params[' {{ parameter . name }}' ] = $cFile;
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- php /usr/local/code/app/{{ spec.title | caseUcfirst}}/Services/{{service.name | caseDash}}.php $@
3+ if [[ -z " $@ " ]]; then
4+ php /usr/local/code/app/{{ spec.title | caseUcfirst}}/Services/{{service.name | caseDash}}.php help
5+ else
6+ php /usr/local/code/app/{{ spec.title | caseUcfirst}}/Services/{{service.name | caseDash}}.php $@
7+ fi
You can’t perform that action at this time.
0 commit comments