Implement the `Platform.homePath` static method in the os module, exposing the user's home directory via libuv's `uv_os_homedir`. The implementation handles buffer resizing with dynamic allocation when `UV_ENOBUFS` is returned, aborts the fiber with an error message on failure, and registers the method in the module registry. Includes a test suite verifying the returned value is a non-empty string, resolves to a real path, and corresponds to an existing directory.
Wren CLI
The CLI project is a small and simple REPL and CLI tool for running Wren scripts.
It is backed by libuv to implement IO functionality, and is a work in progress.
For documentation and usage, see http://wren.io/cli
For more information about Wren, the language used by the CLI, see http://wren.io
Like with Wren itself, we welcome contributions.
To build the Wren CLI
Windows
The projects/vs20xx folders contain Visual Studio projects.
macOS
The projects/xcode folder contains an Xcode project.
The projects/make.mac folder also contains a make project.
From that folder, run make.
cd projects/make.mac
make
Linux
The projects/make folder contains a make project.
From that folder, run make.
cd projects/make
make
FreeBSD
The projects/make.bsd folder contains a make project.
From that folder, run make.
cd projects/make.bsd
gmake
Alternative build options
The projects are generated by premake, found inside projects/premake.
You can use premake5 (alpha 14 was used) to generate other projects.
Generate other system's projects via the premake --os flag,
i.e if on linux, premake vs2019 --os=windows is valid.