So this is my first rust pull request! So let me know if you see anything non-standard/bad-practice or just even something weird.
I added a few things to the CLI:
// open a place and run a lua file in that place
run-in-roblox place.rbxlx --script bootstrap.lua
// open a place and execute some lua code
run-in-roblox place.rbxlx --execute "require(game:GetService('ServerStorage').Main)"
// open an empty place and run a lua file
run-in-roblox main.lua
The last command will panic if you pass --script or --execute. About that, should I really just panic! in main.rs? Or is there a better way to exit with an error message?
I added the colored create in order to be able to output with similar colors as in roblox studio output window.
So this is my first rust pull request! So let me know if you see anything non-standard/bad-practice or just even something weird.
I added a few things to the CLI:
The last command will panic if you pass
--script
or--execute
. About that, should I really justpanic!
in main.rs? Or is there a better way to exit with an error message?I added the
colored
create in order to be able to output with similar colors as in roblox studio output window.