sdk-generator icon indicating copy to clipboard operation
sdk-generator copied to clipboard

feat: give a hint to run init and deploy command

Open adarshjhaa100 opened this issue 1 year ago • 5 comments

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

image

Before :

image

After:

image image image image

Related PRs and Issues

  • https://github.com/appwrite/sdk-for-cli/issues/87

Have you read the Contributing Guidelines on issues?

Yes

adarshjhaa100 avatar Sep 25 '23 17:09 adarshjhaa100