appwrite / sdk-for-cli

[READ-ONLY] Official Appwrite CLI >_
BSD 3-Clause "New" or "Revised" License
91 stars 26 forks source link

Added a deploy option to preserve attribs order #105

Closed BigPapoo closed 5 months ago

BigPapoo commented 10 months ago

What does this PR do?

I added a deploy collection option for keeping the attributes ordered as they appear in the appwrite.json file.

Test Plan

Install modules :

npm install

Test the help :

node ./index.js deploy collection --help

Prepare an appwrite.json file :

node ./index.js login
node ./index.js init project
node ./index.js init collection

[OPTIONAL] Test the randomness of the current attributes creation (pick a collection in the list and check the attributes order):

node ./index.js deploy collection

Test the new attributes creation (pick a collection in the list and check that the attributes order is kept as original one):

node ./index.js deploy collection --preserve

Related PRs and Issues

None

Have you read the Contributing Guidelines on issues?

YES

stnguyen90 commented 5 months ago

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.