The existing appwrite deploy [subcommand] gives a cryptic error message in absence of appwrite.json file in the working directory.
✗ Error No functions found in the current directory.
The feature has fixed this issue and now displays the following message instead:
✗ Error: No appwrite.json file found in the current directory. This command must be run in the folder holding your appwrite.json file. Please run this command again in the folder containing your appwrite.json file, or run [command to init appwrite.json].
The changes have been made for all of the services where where the cryptic message was displayed: function, collection, bucket and team
Test Plan
Testing Type : Manual
Scenario: When appwrite.json is not present in the working directory
Before :
After:
Related PRs and Issues
Issue #87 , Feature: Give a hint to where you should run init and deploy commands
@adarshjhaa100 thanks for creating this PR! Unfortunately, this is a read-only repo as the code is generated by our SDK Generator, and changes made only here would be wiped in the next release.
What does this PR do?
The existing
appwrite deploy [subcommand]
gives a cryptic error message in absence ofappwrite.json
file in the working directory.✗ Error No functions found in the current directory.
The feature has fixed this issue and now displays the following message instead:
✗ Error: No appwrite.json file found in the current directory. This command must be run in the folder holding your appwrite.json file. Please run this command again in the folder containing your appwrite.json file, or run [command to init appwrite.json].
The changes have been made for all of the services where where the cryptic message was displayed: function, collection, bucket and team
Test Plan
Testing Type : Manual
Scenario: When
appwrite.json
is not present in the working directoryBefore :
After:
Related PRs and Issues
Issue #87 , Feature: Give a hint to where you should run init and deploy commands
Have you read the Contributing Guidelines on issues?
Yes