sdk-generator
sdk-generator copied to clipboard
feat: give a hint to run init and deploy command
What does this PR do?
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
- https://github.com/appwrite/sdk-for-cli/issues/87
Have you read the Contributing Guidelines on issues?
Yes