appwrite / sdk-for-cli

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

'appwrite init function' doesn't work on Windows #30

Closed watzon closed 1 year ago

watzon commented 2 years ago

Seems like there might be something linux specific with appwrite init function. When attempting on Windows I get

Error ENOENT: no such file or directory, open 'C:\...\functions\My Awesome Function\README.md'

Node version: v17.7.1 Appwrite CLI version: 0.15.0

Tried with both CMD and Powershell

christyjacob4 commented 2 years ago

You're right @watzon Thank you for raising this. We're using Unix specific mkdir -m 777 in the code causing it to fail on Windows. As a temporary work around, please use WSL.

We have this noted and we'll fix it soon 🙂

anandsubbu007 commented 2 years ago

any update?

Meldiron commented 2 years ago

Addressed in PR: https://github.com/appwrite/sdk-generator/pull/406

stnguyen90 commented 2 years ago

Duplicate of https://github.com/appwrite/sdk-for-cli/issues/29

DanielAlbertSwan commented 1 year ago

The Windows specific code is missing in current master is this intended?

stnguyen90 commented 1 year ago

The Windows specific code is missing in current master is this intended?

Thanks for bringing this up! 🙏 The code seems to have disappeared. 🧐 We'll look into it and fix it ASAP.

stnguyen90 commented 1 year ago

@DanielAlbertSwan, we just pushed 0.18.4. How does it look now?

DanielAlbertSwan commented 1 year ago

Yes now it is working